Trigger devices are useful for triggering other devices, and can be activated by players, vehicles, or other devices.
Make an Automatic Door
When you combine a Trigger device with a Lock device, you have an easy way to set up a door that automatically opens and closes.
Devices Used
2 x Trigger devices
1 x Player Spawner device
1 x Lock device
Set Up the Devices
Place the Art Deco Bank prefab.
Place a Player Spawner device in front of the front door.
Place a Lock device on the door panel. Make sure the light on the lock is blue — this indicates that it is successfully connected to the door.
Place a Trigger device in front of the door, and change the size to make sure it is wide enough to cover the entire ground in front of the double doors.
Customize the trigger so that it isn't visible in the game.
Place a second Trigger device away from the building. This trigger will close the door again after it is opened.
Customize the second trigger.
Option
Value
Visible In Game
Off
Triggered by Player
Off
Trigger Delay
2.0 Seconds
Trigger VFX
Off
Trigger SFX
Off
Configure the following event on the first trigger so that it opens the door and triggers the closing trigger when the player steps on it.
Event
Select Device
Select Function
On Triggered
Lock Device
Open
On Triggered
Close Trigger
Trigger
Configure the following event on the closing trigger so that it closes the door after a delay.
Event
Select Device
Select Function
On Triggered
Lock Device
Close
You now have the basic functionality for an automatic door!
Design Tip
This simple functionality can be extended in many ways. If you want players to open the door from either side, place another trigger on the inside of the door and configure it the same way as the first.
You can also connect other devices to a trigger. For example, you could set an alarm to go off if a player goes somewhere they shouldn't!
Random Loadout
Triggers can be activated by sequencers like the Random Number Generator device. Combining a trigger with a random number generator provides a way to grant a player a random loadout!
Devices Used
4 x Trigger devices
1 x Player Spawner device
1 x Random Number Generator device
4 x Item Granter devices
1 x Button device
Set Up the Devices
Place a Player Spawner device.
Place a Random Number Generator device.
Customize the device.
Option
Value
Value Limit 2
4
Roll Time
Instant
Zone Direction
Forward
Visible During Game
No
Play Audio
Off
Place a Trigger device inside the first tile that extends out from the Random Number Generator device.
Customize the trigger.
Option
Value
Visible In Game
Off
Triggered by Player
Off
Trigger VFX
Off
Trigger SFX
Off
Place an Item Granter device next to the random number generator. Register a Combat Shotgun to the device
Configure the following event on the trigger so that it triggers the item granter to grant the player the Combat Shotgun when triggered.
Event
Select Device
Select Function
On Triggered
Item Granter 1
Grant Item
Duplicate the Trigger and Item Granter devices three more times, placing each in each of the sequencer zones of the random number generator. Copy both devices at the same time to preserve the events bound between them.
Update the three new item granters to have a Combat Assault Rifle, Combat SMG, and Bolt Action Sniper Rifle registered respectively.
Place a Button device and customize.
Option
Value
Interaction Text
Grant New Loadout
Configure the following event on the Button device so that it starts the Random Number Generator device and gives the player a new loadout when activated.
Event
Select Device
Select Function
On Interact
Random Number Generator
Activate
You now have the basic functionality for a random loadout system!
Design Tip
Another way to trigger the system is to configure the Random Number Generator device to activate at the start of the game, giving each player a random starting weapon.
Think about how you could set up the system as an unlockable upgrade in which the player can re-roll their loadout!
Build a Surfboard Time Trial
The Trigger device can be activated by objects other than players, such as projectiles, creatures, and vehicles. In this example, you’ll use triggers to create a speed course for a surfboard. Yes, a surfboard!
Devices Used
6 x Trigger devices
1 x Player Spawner device
1 x Surfboard Spawner device
5 x Prop Manipulator devices
5 x VFX Spawner devices
1 x Timer device
1 x End Game device
Set Up the Basic Gameplay
Begin with the Archipelago Island starter island.
Place a Player Spawner device on one of the islands.
Customize the player spawner so it isn't visible in-game.
Place a Surfboard Spawner device and customize.
Option
Value
Visible During Game
Off
Vehicle Indestructible
On
Configure the Checkpoint Zones
Place a Square Frame from the Reactive Trim Gallery.
Place a Trigger device inside the frame, resizing it to cover the inside of the frame as completely as possible.
Customize the trigger.
Option
Value
Visible In Game
Off
Times Can Trigger
1
Trigger VFX
Off
Trigger SFX
Off
Place a Prop Manipulator device and connect to the frame.
Place a VFX Spawner device in the center of the frame.
Customize the VFX spawner.
Option
Value
Effect Type
Burst
Burst Visual Effect
Explosion Electrical
Configure the following event on the trigger so that it hides the frame and triggers the visual effects when the player goes through it on the surfboard.
Event
Select Device
Select Function
On Triggered
VFX Spawner
Restart
On Triggered
Prop Manipulator
Hide Props
Set Up the Game End
Place a Timer device.
Customize the timer.
Option
Value
Start at Game Start
On
Can Interact
No
Success on Timer End
False
Visible During Game
Hidden
Timer Color
White
Timer Running Text
Ride through all zones in…
Place an End Game device in an area that the player can’t see.
Place another trigger and customize it.
Option
Value
Visible In Game
Off
Triggered by Player
Off
Triggered by Vehicles
Off
Transmit Every X Triggers
5
Configure the following functions on the Game End Trigger device so that each trigger triggers it.
Function
Select Device
Select Event
Trigger When Receiving From
Trigger1-5
On Triggered
Configure the following events on the Game End Trigger device to stop the timer and end the game when the player completes the challenge.
Event
Select Device
Select Function
On Triggered
End Game Device
Activate
On Triggered
Timer Device
Pause
You now have a working surfboard time trial!
Design Tip
The Race Checkpoint devices can produce a similar effect to this mechanic, but they are more specialized for races in which the player must go through checkpoints in a specific order.
For this example, a custom trigger used with another trigger that tracks progress through a checkpoint works better.