Triggers: Difference between revisions
mNo edit summary |
m (added trigger frequency) |
||
Line 14: | Line 14: | ||
[[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> | ||
Array variable '''thisList''' is set to list of all vehicles that would satisfy primary sensor activation condition.<br> | Array variable '''thisList''' is set to list of all vehicles that would satisfy primary sensor activation condition.<br> | ||
Condition must return [[Boolean]] value. | Condition must return [[Boolean]] value.<br> | ||
Trigger conditions are tested every .5 seconds. | |||
==On Activation/Deactivation== | ==On Activation/Deactivation== |
Revision as of 19:56, 22 July 2006
Introduction
Triggers are an essential function for mission designers. A trigger (sometimes called a sensor) allows a mission designer 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 cutscene with the camera feature, or even play the appropriate music when the time is right.
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 east or west is present or not present or even detected within the trigger. A trigger can also be used to set up radio commands.
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
- 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.
Trigger conditions are tested every .5 seconds.
On Activation/Deactivation
- expressions define action that is performed 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
- allow the mission designer to add music, or environmental sounds to the mission. Many use the effects to create quick and easy cutscenes.