View Single Post
Old 08-09-22, 02:43 PM   #127
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 873
Downloads: 72
Uploads: 3
Default

Quote:
Originally Posted by Jeff-Groves View Post
Maybe the torpedos on suface Ships are looking for the
wpn_SubTorpedoSys Controller?
The AI Subs have that.
If they were, they would have found one on my test ship

Quote:
Originally Posted by gap View Post
No, Ship:Random is one of those commands whose arguments are pretty obvious. I mean the parameter of commands like Ship:ShipWaitAction, or the second parameter of Ship:TurnToHeading. They seem to always be in the range 0-1

Else, Plane:Strafe is another of those commands that accept a numeric parameter, but all the instances I found of it go from -20 to 100. Could that be an angle relative to current aircraft heading?
Some of these commands are luckily explained in comments to Ship.aix file. For example, for ShipWaitAction:

# void ShipWaitAction(fMinutes) -- action -- ship waits for given time [minutes]

Unfortunately there are a lot of commands that are not explained anywhere, Strafe being one of them (that's why I asked for meaning of the same numbers earlier in this thread). For those commands I'm afraid we can only find what parameters mean by testing different values and noting what happens.

Edit: ninja'ed
Attached Files
File Type: txt Ship.aix.txt (10.3 KB, 1 views)
kapuhy is offline   Reply With Quote