setEffectCondition: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 23: | Line 23: | ||
'''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 | 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. | |||
'''Example:''' | '''Example:''' | ||
trigger setEffectCondition "thisList" | trigger '''setEffectCondition''' "thisList" |
Revision as of 20:07, 4 July 2006
trigger or waypoint setEffectCondition statement
Operand types:
trigger or waypoint: Object or Array
statement: String
Type of returned value:
Compatibility:
Version 1.86 required.
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.
Example:
trigger setEffectCondition "thisList"