addAction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 3: Line 3:
'''Operand types:'''
'''Operand types:'''


'''unit:''' [[Object]]
'''unit:''' [[Object]]<br>
'''action:''' [[Array]]
'''action:''' [[Array]]


Line 13: Line 13:
'''Description:'''
'''Description:'''


Create an action.
Create an action.<br>
Action ID should be returned, but due to bug it is not.
Action ID should be returned, but due to bug it is not.<br>
To determine action ID use following algorithm:
To determine action ID use following algorithm:<br>
First action added to given vehicle has ID zero, next has ID 1, etc.  
First action added to given vehicle has ID zero, next has ID 1, etc.  



Revision as of 12:53, 15 April 2006

unit addaction action

Operand types:

unit: Object
action: Array


Type of returned value:

Nothing

Description:

Create an action.
Action ID should be returned, but due to bug it is not.
To determine action ID use following algorithm:
First action added to given vehicle has ID zero, next has ID 1, etc.

Example:

player addAction ["Hello", "hello.sqs"]