🎬Generic Actions

Here, you will learn how to use the GENERIC ACTIONS system!

To use generic actions, we will need an action trigger first.

ACTION TRIGGER

  1. Create a new GameObject and add a collider to it. Then, make that collider's IsTrigger true.

  2. Add a RigidBody to the GameObject and make its IsKinematic variable true.

  3. Add a Universal Animal Generic Trigger script to the GameObject.

Universal Animal Generic Trigger Variables

Explanations:

Freeze Animal

Will the animal freeze while the action is ongoing?

Action Delay

Delay of the action.

Use Action Timer

If yes, it will stop action after a time, else it will stop when the animation ends.

Go To Another Action

When the action ends, will the animal walk to another action trigger?

Action Type

Which action will the animal do?

Action Heals AI

Will this action heals the AI?

Action Damages AI

Will this action damages the AI?

Example

And that's all if your pet walks in the trigger the action will start!

Last updated

Was this helpful?