playMaker

Author Topic: Using a collision to trigger an animation  (Read 799 times)

TVISARL

  • Junior Playmaker
  • **
  • Posts: 50
Using a collision to trigger an animation
« on: January 06, 2020, 08:14:20 AM »
I must confess that I am a little lost. The situation is tthe following:

I have a Game Object A that nneds an FSM.
A has a child Game Object named B.
A has an Animator component.

B is a child of A.
B has a Box Collider component configured as a Trigger.

Purpose of the FSM :
If the player (tag "Player") enters B's trigger, set on a boolean parameter ( C ) in A's Animator. This is to start an animation, of course.
If anything other than the player enters B's trigger, do nothing.

Can you help ? Thanks in advance.

P.S : Of course, I am not asking for anything 100 % precise.  What I need is a list of actions  (I will work out the parameters myself) to give me a starting point. At the moment I am lost.
« Last Edit: January 06, 2020, 12:21:26 PM by TVISARL »

TVISARL

  • Junior Playmaker
  • **
  • Posts: 50
Re: Using a collision to trigger an animation
« Reply #1 on: January 07, 2020, 12:15:33 PM »
As usual, I've made an ass of myself.
For some reason, the "Trigger Event" action had escaped me...