Difference between revisions of "switchMove"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
m
Line 5: Line 5:
  
  
<h2 style="color:#000066">'''''person'' switchmove ''movename'''''</h2>
+
<h2 style="color:#000066">'''''soldier'' switchmove ''movename'''''</h2>
  
  
 
'''Operand types:'''
 
'''Operand types:'''
  
'''person:''' [[Object]]
+
'''soldier:''' [[Object]]
  
 
'''movename:''' [[String]]
 
'''movename:''' [[String]]
Line 20: Line 20:
 
'''Description:'''
 
'''Description:'''
  
When used on a person, given move is started immediately (no transition).<br>
+
When used on a person, the given move is started immediately (there is no transition).
Use '''switchMove''' '''""''' to switch back to default movement if there is no transition back, otherwise person may become stuck.
+
 
 +
Use switchmove "" to switch back to the default movement if there is no transition back, otherwise the person may be stuck.
  
  

Revision as of 16:21, 5 July 2006


soldier switchmove movename


Operand types:

soldier: Object

movename: String

Type of returned value:

Nothing

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.