# Triggers (scripting commands)

- [createTrigger](../../commands/createTrigger.md): Creates a trigger of the given type and at the given position. The type must be a class name in *CfgNonAIVehicles* or *CfgVehicles* with `simulation = detector`.
- [inArea](../../commands/inArea.md): Checks whether given position or object is inside given area. Use inAreaArray to check multiple positions/objects within area.
- [inAreaArray](../../commands/inAreaArray.md): Returns given list of Objects and/or Positions that are in the given area, area defined by a trigger, marker, location or array.
- [inAreaArrayIndexes](../../commands/inAreaArrayIndexes.md): Returns indices of positions that are within the provided area.
- [list](../../commands/list.md): List of units that would activate given Trigger.
- [setEffectCondition](../../commands/setEffectCondition.md): The statement is executed when the trigger or waypoint is activated and the effects are launched depending on the result.
- [setMusicEffect](../../commands/setMusicEffect.md): Defines a music track played on activation. If another track is playing already, this will stop it and start the new track.
- [setRadioMsg](../../commands/setRadioMsg.md): Sets radio trigger menu title text (0 -> 0 -> map radio). Use "NULL" to disable radio slot. Use "" to restore default title.
- [setSoundEffect](../../commands/setSoundEffect.md): Defines the different sound effects for a trigger or a waypoint. To stop any sound, deactivate the trigger (might take up to 0.5 seconds to stop) or delete the trigger/waypoint (immediate).
- [setTitleEffect](../../commands/setTitleEffect.md): Defines the title effect to show on activation via [Type, Effect, Text] where
- [setTriggerActivation](../../commands/setTriggerActivation.md): Defines the trigger activation type.
- [setTriggerArea](../../commands/setTriggerArea.md): Defines the area monitored by the given trigger. The area could be either rectangular or elliptical.
- [setTriggerInterval](../../commands/setTriggerInterval.md): Sets the interval in seconds for trigger condition check.
- [setTriggerStatements](../../commands/setTriggerStatements.md): Defines trigger condition, activation and deactivation statements. Trigger condition has to return Boolean. true will activate the trigger, false will deactivate it (only if activation is set to repeat).
- [setTriggerText](../../commands/setTriggerText.md): Sets the text label attached to the trigger object. This is used for example as a radio slot label for radio activated triggers.
- [setTriggerTimeout](../../commands/setTriggerTimeout.md): Defines the time between condition satisfaction and trigger activation (randomly from min to max, with an average value mid). If the last argument is true, the condition must be fullfilled all the time.
- [setTriggerType](../../commands/setTriggerType.md): Sets the type of action processed by the trigger after activation (no action, a waypoints switch or an end of mission):
- [synchronizedTriggers](../../commands/synchronizedTriggers.md): Returns the list of triggers synchronized with a given waypoint.
- [synchronizedWaypoints](../../commands/synchronizedWaypoints.md): Returns the list of waypoints synchronized with a given trigger or waypoint.
- [synchronizeTrigger](../../commands/synchronizeTrigger.md): Synchronizes the trigger with zero or more waypoints.
- [synchronizeWaypoint](../../commands/synchronizeWaypoint.md): Synchronizes the trigger or the waypoint with an array of waypoints.
- [triggerActivated](../../commands/triggerActivated.md): Returns true if the trigger has been activated.
- [triggerActivation](../../commands/triggerActivation.md): Returns trigger activation.
- [triggerArea](../../commands/triggerArea.md): Returns currently monitored trigger area. Since Arma 3 v1.60, the command returns 3rd dimension for the monitored area. If height is not set, the value for it would be -1.
- [triggerAttachedVehicle](../../commands/triggerAttachedVehicle.md): Returns vehicle attached to the trigger (for example using triggerAttachVehicle).
- [triggerAttachObject](../../commands/triggerAttachObject.md): Assigns a static object to the trigger. The activation source is changed to "STATIC".
- [triggerAttachVehicle](../../commands/triggerAttachVehicle.md): Specifies the entity which will activate the selected trigger.
- [triggerInterval](../../commands/triggerInterval.md): Returns trigger condition check frequency in seconds.
- [triggerStatements](../../commands/triggerStatements.md): Returns trigger statements.
- [triggerText](../../commands/triggerText.md): Returns trigger text.
- [triggerTimeout](../../commands/triggerTimeout.md): Returns trigger timeout.
- [triggerTimeoutCurrent](../../commands/triggerTimeoutCurrent.md): Returns current timeout of the given trigger or -1 if countdown is not in progress.
- [triggerType](../../commands/triggerType.md): Returns the trigger type.
