triggerActivated: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma2 |Game name= | | arma2 |Game name= | ||
Line 9: | Line 8: | ||
|gr1= Triggers |GROUP1= | |gr1= Triggers |GROUP1= | ||
| Returns true if the trigger has been activated. | | Returns true if the trigger has been activated. | ||
Line 16: | Line 14: | ||
{{Important | The trigger could be [[local]] or remote but the result returned by this command will be for the trigger activated status on the client that executed the command. See [[createTrigger]] for more info.}} |DESCRIPTION= | {{Important | The trigger could be [[local]] or remote but the result returned by this command will be for the trigger activated status on the client that executed the command. See [[createTrigger]] for more info.}} |DESCRIPTION= | ||
| [[triggerActivated]] trigger |SYNTAX= | | [[triggerActivated]] trigger |SYNTAX= | ||
Line 27: | Line 24: | ||
{{cc|code}} | {{cc|code}} | ||
};</code>|EXAMPLE1= | };</code>|EXAMPLE1= | ||
| [[setTriggerActivation]], [[triggerActivation]], [[triggerInterval]], [[setTriggerInterval]], [[enableSimulation]], [[simulationEnabled]] |SEEALSO= | | [[setTriggerActivation]], [[triggerActivation]], [[triggerInterval]], [[setTriggerInterval]], [[enableSimulation]], [[simulationEnabled]] |SEEALSO= |
Revision as of 03:49, 17 January 2021
Description
- Description:
- Returns true if the trigger has been activated.
- Groups:
- Triggers
Syntax
- Syntax:
- triggerActivated trigger
- Parameters:
- trigger: Object
- Return Value:
- Boolean
Examples
- Example 1:
if (triggerActivated trg1) then { // code };
Additional Information
- See also:
- setTriggerActivationtriggerActivationtriggerIntervalsetTriggerIntervalenableSimulationsimulationEnabled
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
- 14:50, 9 June 2015 (CEST)
- MisterGoodson
- If trigger already activated at least once, triggerActivated will only return false if trigger is set to activate Repeatedly.
In other words, a trigger set to activate Once will always return true once activated at least once (even if trigger is no longer activated).