setTriggerStatements: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
||
Line 40: | Line 40: | ||
[[Category:Command_Group:_Activators|{{uc:{{PAGENAME}}}}]] | [[Category:Command_Group:_Activators|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] |
Revision as of 12:06, 25 March 2013
Description
- Description:
- Defines a trigger's condition, and executable code for its activation and deactivation events.
- Groups:
- Uncategorised
Syntax
- Syntax:
- trigger setTriggerStatements [condition, activation, deactivation]
- Parameters:
- trigger: Object - Trigger object
- condition: String - Code containing the trigger's condition, which has to return a boolean value. If this is used, the result of the trigger's activation condition is interpreted.
- activation: String - Code that is executed when the trigger is activated (The variable thislist contains an array with the units that activated the trigger.)
- deactivation: String - Code that is executed when the trigger is deactivated.
- Return Value:
- Nothing
Examples
- Example 1:
_trg setTriggerStatements ["this", "hint 'trigger on'", "hint 'trigger off'"]
Additional Information
- See also:
- triggerStatementscreateTriggersetTriggerActivationsetTriggerAreasetTriggerTextsetTriggerTimeoutsetTriggerTypethis
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
Notes
-
An array with three arguments is mandatory for this function.