Triggers: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
'''Description:'''
'''Description:'''


Condition expression is used to determine when the trigger is activated.<br>
'''Condition''' expression is used to determine when the trigger is activated.<br>
[[Boolean]] variable '''this''' is set during evaluation of condition expression to primary sensor activation condition.<br>
[[Boolean]] variable '''this''' is set during evaluation of condition expression to primary sensor activation condition.<br>
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>
Expression must either be an assignment or return nothing (see type [[Nothing]]).<br>
Expression must either be an assignment or return nothing (see type [[Nothing]]).<br>
Variable denoting trigger can be created by filling in name field.
Variable denoting trigger can be created by filling in [[name]] field.




[[Category: Scripting_Topics ]]
[[Category: Scripting_Topics ]]

Revision as of 00:23, 20 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.