addAction

From Bohemia Interactive Community
Revision as of 11:51, 15 April 2006 by Bedges (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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"]