action: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
back to [[Scripting_Reference#A|COMREF]]
back to [[Scripting_Reference#A|COMREF]]


== '''''unit'' action ''action''''' ==
<h2 style="color:#000066">'''''unit'' action ''action'''''</h2>


'''Operand types:'''
'''Operand types:'''

Revision as of 13:29, 15 April 2006

back to COMREF

unit action action

Operand types:

unit: Object

action: Array

Type of returned value:

Nothing

Description:

Make unit peform an action.

Format of action may be [type, target, param1, param2, param3].

Only type is required, target defaults to unit, param1, param2, param3 are type specific.


Example:

soldierOne action ["eject", vehicle soldierOne]