Triggers: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
Array variable '''thisList''' is set to list of all vehicles that would satisfy primary sensor activation condition.<br>
Array variable '''thisList''' is set to list of all vehicles that would satisfy primary sensor activation condition.<br>
Condition must return [[Boolean]] value.
Condition must return [[Boolean]] value.


On Activation and On Deactivation expressions define action that is peformed when trigger condition changes to true or false.<br>
On Activation and On Deactivation expressions define action that is peformed when trigger condition changes to true or false.<br>

Revision as of 23:21, 19 April 2006

Description:

Condition expression is used to determine when the trigger is activated.
Boolean variable this is set during evaluation of condition expression to primary sensor activation condition.
Array variable thisList is set to list of all vehicles that would satisfy primary sensor activation condition.
Condition must return Boolean value.

On Activation and On Deactivation expressions define action that is peformed when trigger condition changes to true or false.
Expression must either be an assignment or return nothing (see type Nothing).
Variable denoting trigger can be created by filling in name field.