Continuous Triggers

Triggers that require continuous interaction triggered.

You may need the type of triggers that require continuous interaction in order to be active.

On practice, such triggers can be used, for exampe, together with Simultaneous logics, when not the player who activates the trigger, but a separate physical object. Thus, these objects must be always intact with the trigger. Otherwise, the trigger is deactivated.

There is another very different use case for these triggers. All of them contain the property called "activationDelay". This property is used if you want to make the player to do a continuous action for over a certain time period. For example, stay in the trigger for 3 seconds.

If activationDelay is set to 0, then the trigger immediately deactivates as soon as the object stops interaction with it.

If activationDelay is not 0, then the trigger stays active even if the object stops interaction with it.

These triggers use optimised implementation of the continuous events. This means that it doesn't implement, for example, built-in OnTriggerStay method, because it is called every frame, thus is highly inefficient. Instead, it make use of the opposing events that occur only once (e.g., OnTriggerEnter + OnTriggerExit).

OnTriggerStayPuzzleTrigger

The trigger will be activated when the object with the compatible tags is staying inside the trigger.

OnKeyHoldPuzzleTrigger

The trigger will be activated when the object with the compatible tags is staying inside the trigger AND holding a specified key on keyboard.

OnMouseHoldPuzzleTrigger

MouseEvent

Click

The trigger will be activated when the mouse is being pressed at the trigger.

Positional

The trigger will be activated when the mouse is being held over the trigger.

Last updated