triggerActivated: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2") |
Lou Montana (talk | contribs) m (Text replacement - "<br />" to "<br>") |
||
Line 42: | Line 42: | ||
<dd class="notedate">14:50, 9 June 2015 (CEST)</dd> | <dd class="notedate">14:50, 9 June 2015 (CEST)</dd> | ||
<dt class="note">'''[[User:MisterGoodson|MisterGoodson]]''' | <dt class="note">'''[[User:MisterGoodson|MisterGoodson]]''' | ||
<dd class="note">If trigger already activated at least once, [[triggerActivated]] will only return false if trigger is set to activate Repeatedly.<br | <dd class="note">If trigger already activated at least once, [[triggerActivated]] will only return false if trigger is set to activate Repeatedly.<br> | ||
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). | 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). | ||
<!-- Note Section END --> | <!-- Note Section END --> |
Revision as of 12:04, 19 March 2020
Description
- Description:
- Returns true if the trigger has been activated.
- Groups:
- Uncategorised
Syntax
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).