Lumberyard
Legacy Reference

Trigger Entities

There are two Trigger entities you can use in your level.

AreaTrigger Entity

Entity Properties

Property Description
trigger-proximity Turns the entity on or off.
InVehicleOnly Sets up that the trigger can only be activated when player is inside vehicle.
OnlyLocalPlayer Sets the trigger to be only triggerable by the local player entity.
OnlyPlayers Sets the trigger to be only triggerable by players entities.
PlaySequence Plays the sequence with the name specified in here.
ScriptCommand Executes a script command when the trigger has been activated.
TriggerOnce Disables the trigger after it has been triggered once.
MultiplayerOptions
Networked

If true physics will be simulated on the server and serialized over the network, otherwise they will be simulated on the client.

ProximityTrigger Entity

Entity Properties

Property Description
ActivateWithUseButton Specifies if the trigger is activated by pressing use.
DimX Specifies how big the trigger is (x-axis).
DimY Specifies how big the trigger is (y-axis).
DimZ Specifies how big the trigger is (z-axis).
Enabled Specifies if the trigger can be activated or not.
EnterDelay Sets up a delay (in seconds) before the enter node of the trigger is activated.
ExitDelay Sets up a delay (in seconds) before the exit node of the trigger is activated.
InVehicleOnly Sets up that the trigger can only be activated when player is inside vehicle.
OnlyAI Sets the trigger to be only triggerable by AI entities.
OnlyMyPlayer Sets the trigger to be only triggerable by the local player.
OnlyOneEntity Sets the trigger to be only triggerable by one entity. First one who triggers it has to leave it in order to be triggerable again.
OnlyPlayer Sets the trigger to be only triggerable by player entities.
OnlySelectedEntity Sets the trigger to be only triggerable by the entity with the name specified in this field. Wildcard matches can be used such as RigidbodyEx*, will allow all entities with that name, regardless of number suffix, etc.
OnlySpecialAI Sets the trigger to be only triggerable by the special AI entities.
PlaySequence Plays the sequence with the name specified in here.
RemoveOnTrigger Similar to the deprecated "KillOnTrigger" param, if true, any entities (except player) which trigger this will be removed.
ScriptCommand Executes a script command when the trigger has been activated
TriggerOnce Disables the trigger after it has been triggered once.
MultiplayerOptions
Networked If true physics will be simulated on the server and serialized over the network, otherwise they will be simulated on the client.