switchMove: Difference between revisions
Jump to navigation
Jump to search
m (Not usable in init) |
mNo edit summary |
||
Line 34: | Line 34: | ||
For a smooth transition use [[playMove]]. | For a smooth transition use [[playMove]]. | ||
This command must be executed after mission start. If you place it into init.sqs or Init field of some unit, it will not work. Just add a little delay (~0.001) and | This command must be executed after mission start. | ||
If you place it into init.sqs or in the Init field of some unit, it will not work. | |||
Just add a little delay (~0.001) and then place the command. |
Revision as of 17:40, 31 July 2006
soldier switchmove movename
Operand types:
soldier: Object
movename: String
Type of returned value:
Description:
When used on a person, the given move is started immediately (there is no transition).
Use switchmove "" to switch back to the default movement if there is no transition back, otherwise the person may be stuck.
Example:
loon1 switchMove "FXStandDip"
Comments
For a smooth transition use playMove.
This command must be executed after mission start.
If you place it into init.sqs or in the Init field of some unit, it will not work.
Just add a little delay (~0.001) and then place the command.