setTriggerStatements: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SETTRIGGERSTATEMENTS]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |SETTRIGGERSTATEMENTS]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|SETTRIGGERSTATEMENTS]]


| ofpr |= Game name


<h2 style="color:#000066">'''''trigger'' setTriggerStatements ''[cond, activ, desactiv]'''''</h2>
|1.86|= Game version
____________________________________________________________________________________________


| 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. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| trigger '''setTriggerStatements''' [cond, activ, desactiv] |= Syntax


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


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


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>trigger setTriggerStatements ["this", "ok = [[true]]", "ok = [[false]]"]</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Version 1.86 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


The first argument can modify the condition of when the trigger is activated.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SETTRIGGERSTATEMENTS]]
The result of the activation defined by trigger activation is in variable this.
[[Category:Scripting Commands OFP Elite |SETTRIGGERSTATEMENTS]]
 
[[Category:Scripting Commands ArmA|SETTRIGGERSTATEMENTS]]
Variable thisList contains all vehicles which caused the activation.
 
'''Activ''' and '''desactiv''' expressions are launched upon trigger activation / deactivation.
 
 
'''Example:'''
 
trigger '''setTriggerStatements''' ["this", "ok = [[true]]", "ok = [[false]]"]

Revision as of 00:32, 2 August 2006

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
Return Value:
Nothing

Examples

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

Additional Information

See also:
See also needed

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