There is an optional script called GuidedActionEvents that can be used in combination with GuidedAction to specify events happening along the path.

image.png

Events have a T point at which they will be triggered. This is indicated with small white sphere on the SceneView.

image.png

Events can have a specific directionality if they only trigger in one direction of the path or if they have different effects for each direction.

Events can be marked as TriggerOnlyOnce and this will get saved accordingly.

Events need an EventId. These can be reused, but will only be saved with the last triggered directionality.

For example, in the GuidedActionsWindowJump example, GuidedActionEvents uses the same EventId “BrokenWindow” for two different events. This allows to do different things when the player jumps from the different sides of the window. However, since both events share the same EventId, they’re both considered as “triggered” when one of them gets triggered.