Temporary Triggers
Temporary Triggers are a special type of trigger that exists only for a few frames areas in a scene that, when an actor walks over them the actor On Collide script will be called. They are useful for creating temporary damage areas like attacks.
Temporary Triggers can be spawned with Spawn Temp. Trigger event.
Spawn Temp. Trigger
Temp. Trigger
1
2
3
4
X
0
Y
0
Width
0
Height
0
Life Time
0.2
Destroy On First Overlap
Collision Group
Group 1
Group 2
Group 3
Group 4
Group 5
Group 6
Group 7
Group 8
Temporary Triggers Properties
- Index - The temporary trigger slot to use.
- Position - Sets the X and Y position where the trigger will be positioned in a scene.
- Size - Sets the Width and Height of the trigger.
- Life Time - The amount of time in frames or seconds that the temporary trigger will live for.
- Destroy On First Overlap - If the temporary trigger will be destroyed when the first overlap happens, it will ignore the lifetime if it's longer.
- Collision Group - Choose the collision group this trigger belongs to.