setTriggerStatements: Difference between revisions
Jump to navigation
Jump to search
(add. ArmA2 classification) |
Besselinksjm (talk | contribs) (rewritten description) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | This command provides hooks for conditioning a trigger with custom functions/scripts. Three hooks are provided: controlling (1) when the trigger will be activated, (2) what to do when the trigger activates, and (3) what to do when the trigger deactivates. Two variables are of concern: ''this'' contains the boolean return value of the trigger's condition (e.g. "East Not Present"); ''thisList'' provides an array containing all units which are currently causing activation. |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| trigger '''setTriggerStatements''' [ | | trigger '''setTriggerStatements''' [condition, activation, deactivation] |= Syntax | ||
|p1= trigger: [[Object]] |= Parameter 1 | |p1= trigger: [[Object]] |= Parameter 1 | ||
|p2= [ | |p2= [condition, activation, deactivation]: [[Array]] |= Parameter 2 | ||
|p3= | |p3= condition: [[String]] |= Parameter 3 | ||
|p4= | |p4= activation: [[String]] |= Parameter 4 | ||
|p5= | |p5= deactivation: [[String]] |= Parameter 5 | ||
| [[Nothing]] |= Return value | | [[Nothing]] |= Return value | ||
Line 24: | Line 24: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[createTrigger]], [[setTriggerActivation]], [[setTriggerArea]], [[setTriggerText]], [[setTriggerTimeout]], [[setTriggerType]] |= See also | | [[createTrigger]], [[setTriggerActivation]], [[setTriggerArea]], [[setTriggerText]], [[setTriggerTimeout]], [[setTriggerType]], [[this]] |= See also | ||
}} | }} |
Revision as of 11:00, 2 November 2009
Description
- Description:
- This command provides hooks for conditioning a trigger with custom functions/scripts. Three hooks are provided: controlling (1) when the trigger will be activated, (2) what to do when the trigger activates, and (3) what to do when the trigger deactivates. Two variables are of concern: this contains the boolean return value of the trigger's condition (e.g. "East Not Present"); thisList provides an array containing all units which are currently causing activation.
- Groups:
- Uncategorised
Syntax
- Syntax:
- trigger setTriggerStatements [condition, activation, deactivation]
- Parameters:
- trigger: Object
- [condition, activation, deactivation]: Array
- condition: String
- activation: String
- deactivation: String
- Return Value:
- Nothing
Examples
Additional Information
- See also:
- createTriggersetTriggerActivationsetTriggerAreasetTriggerTextsetTriggerTimeoutsetTriggerTypethis
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note