Triggers: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(Added some text, sectioned)
Line 1: Line 1:
'''Description:'''
===Introduction===


'''Triggers''' are a very help function for mission designers, a trigger sometimes called a sensor, allows a mission degsigner to control events within a mission. Some common uses for triggers are controlling the timing of when a squad moves in, or used in a cut-scene with the camera feature, or even play the appropriate music when the time is right.
==Activation==
'''Activation''', this allows you to choose how the trigger is activated. There are several combinations that can be created to activate the trigger, the trigger can be used to check if the [[east]] or [[west]] is ''present'' or ''notpresent'' or even ''detected'' within the trigger. A trigger can also be used to setup ''radio'' commands.
==Countdown==
'''Countdown''' defines how long to wait until the '''On Activation''' is fired. Min, Max and Mid allow you to add some randomization to the time.
==Condition==
'''Condition''' expression is used to determine when the trigger is activated.<br>
'''Condition''' expression is used to determine when the trigger is activated.<br>
[[Boolean]] variable '''this''' is set during evaluation of condition expression to primary sensor activation condition.<br>
[[Boolean]] variable '''this''' is set during evaluation of condition expression to primary sensor activation condition.<br>
Line 6: Line 17:
Condition must return [[Boolean]] value.
Condition must return [[Boolean]] value.


==On Activation/Deactivation==
'''On Activation''' and '''On Deactivation''' expressions define action that is peformed when trigger condition changes to [[true]] or [[false]].<br>
'''On Activation''' and '''On Deactivation''' expressions define action that is peformed when trigger condition changes to [[true]] or [[false]].<br>
Expression must either be an assignment or return nothing (see type [[Nothing]]).<br>
Expression must either be an assignment or return nothing (see type [[Nothing]]).<br>
Variable denoting trigger can be created by filling in [[name]] field.
Variable denoting trigger can be created by filling in [[name]] field.
==Effects==
'''Effects''' allow the mission designer to add music, or environmental sounds to the mission. Many use the effects to create quick and easy cut scenes.




[[Category: Scripting_Topics ]]
[[Category: Scripting_Topics ]]

Revision as of 15:58, 2 June 2006

Introduction

Triggers are a very help function for mission designers, a trigger sometimes called a sensor, allows a mission degsigner to control events within a mission. Some common uses for triggers are controlling the timing of when a squad moves in, or used in a cut-scene with the camera feature, or even play the appropriate music when the time is right.


Activation

Activation, this allows you to choose how the trigger is activated. There are several combinations that can be created to activate the trigger, the trigger can be used to check if the east or west is present or notpresent or even detected within the trigger. A trigger can also be used to setup radio commands.

Countdown

Countdown defines how long to wait until the On Activation is fired. Min, Max and Mid allow you to add some randomization to the time.

Condition

Condition expression is used to determine when the trigger is activated.
Boolean variable this is set during evaluation of condition expression to primary sensor activation condition.
Array variable thisList is set to list of all vehicles that would satisfy primary sensor activation condition.
Condition must return Boolean value.

On Activation/Deactivation

On Activation and On Deactivation expressions define action that is peformed when trigger condition changes to true or false.
Expression must either be an assignment or return nothing (see type Nothing).
Variable denoting trigger can be created by filling in name field.

Effects

Effects allow the mission designer to add music, or environmental sounds to the mission. Many use the effects to create quick and easy cut scenes.