setEffectCondition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]OFP[ _]Elite *(\|.*)?\]\]" to "{{GameCategory|ofpe|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma1 |Game name=
| arma1 |Game name=
Line 7: Line 6:


|gr1= Triggers |GROUP1=
|gr1= Triggers |GROUP1=
____________________________________________________________________________________________


| The statement is executed when the trigger or waypoint is activated and the effects are launched depending on the result.
| The statement is executed when the trigger or waypoint is activated and the effects are launched depending on the result.
Line 14: Line 12:
*If the result is an [[object]], the effect is launched if the result is the player or the player vehicle.
*If the result is an [[object]], the effect is launched if the result is the player or the player vehicle.
*If the result is an [[Array|array]], the effect is launched if the result contains the player or the player vehicle. |DESCRIPTION=
*If the result is an [[Array|array]], the effect is launched if the result contains the player or the player vehicle. |DESCRIPTION=
____________________________________________________________________________________________


| trigger '''setEffectCondition''' statement |SYNTAX=
| trigger '''setEffectCondition''' statement |SYNTAX=
Line 23: Line 20:


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________


|s2= waypoint '''setEffectCondition''' statement |SYNTAX2=
|s2= waypoint '''setEffectCondition''' statement |SYNTAX2=
Line 31: Line 27:


|r2= [[Nothing]] |RETURNVALUE2=
|r2= [[Nothing]] |RETURNVALUE2=
____________________________________________________________________________________________
   
   
|x1= <code>_triggerObj [[setEffectCondition]] "thisList";</code> |EXAMPLE1=
|x1= <code>_triggerObj [[setEffectCondition]] "thisList";</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[createTrigger]] |SEEALSO=
| [[createTrigger]] |SEEALSO=

Revision as of 03:36, 17 January 2021

Hover & click on the images for description

Description

Description:
The statement is executed when the trigger or waypoint is activated and the effects are launched depending on the result.
  • If the result is a boolean and true, the effect is launched.
  • If the result is an object, the effect is launched if the result is the player or the player vehicle.
  • If the result is an array, the effect is launched if the result contains the player or the player vehicle.
Groups:
Triggers

Syntax

Syntax:
trigger setEffectCondition statement
Parameters:
trigger: Object
statement: String
Return Value:
Nothing

Alternative Syntax

Syntax:
waypoint setEffectCondition statement
Parameters:
waypoint: Waypoint - Array format Waypoint
statement: String
Return Value:
Nothing

Examples

Example 1:
_triggerObj setEffectCondition "thisList";

Additional Information

See also:
createTrigger

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