setEffectCondition: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]OFP[ _]Elite *(\|.*)?\]\]" to "{{GameCategory|ofpe|Scripting Commands}}") |
Lou Montana (talk | contribs) 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 02:36, 17 January 2021
Description
- Description:
- The statement is executed when the trigger or waypoint is activated and the effects are launched depending on the result.
- 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
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Triggers
- Operation Flashpoint: Elite: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands