setTriggerStatements: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(add. see also)
mNo edit summary
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| trigger '''setTriggerStatements''' [cond, activ, desactiv] |= Syntax
| trigger '''setTriggerStatements''' ["cond", "activ", "desactiv"] |= Syntax


|p1= trigger: [[Object]] |= Parameter 1
|p1= trigger: [[Object]] |= Parameter 1


|p2= [cond, activ, desactiv]: [[Array]] |= Parameter 2
|p2= [cond, activ, desactiv]: [[Array]] [[String]]s |= Parameter 2


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>trigger setTriggerStatements ["this", "ok <nowiki>=</nowiki> [[true]]", "ok <nowiki>=</nowiki> [[false]]"]</code> |= Example 1
|x1= <code>_trigger setTriggerStatements ["this", "ok <nowiki>=</nowiki> [[true]]", "ok <nowiki>=</nowiki> [[false]]"]</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 11:39, 31 August 2007

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
The first argument can modify the condition of when the trigger is activated. The result of the activation defined by trigger activation is in variable this. Variable thisList contains all vehicles which caused the activation. Activ and desactiv expressions are launched upon trigger activation / deactivation.
Groups:
Uncategorised

Syntax

Syntax:
trigger setTriggerStatements ["cond", "activ", "desactiv"]
Parameters:
trigger: Object
[cond, activ, desactiv]: Array Strings
Return Value:
Nothing

Examples

Example 1:
_trigger setTriggerStatements ["this", "ok = true", "ok = false"]

Additional Information

See also:
createTriggersetTriggerActivationsetTriggerAreasetTriggerTextsetTriggerTimeoutsetTriggerType

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

Bottom Section