playMaker

Author Topic: SendEvent Animation on FSM Template  (Read 743 times)

gamafive

  • Playmaker Newbie
  • *
  • Posts: 4
SendEvent Animation on FSM Template
« on: May 26, 2020, 06:39:46 AM »
Hello!

I have got a problem with the "SendEvent" function on a FSM Template.

I try to Run an FSM in "State 1" and go to "State 2" when FSM Template finished (1).
The FSM Template doesn't go to "SET POSITION TOP" after using Animator Play (2).
But I have a "SendEvent" function at the end of my animation (3).

"SendEvent" works perfectly before I made a template : what's wrong ?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: SendEvent Animation on FSM Template
« Reply #1 on: May 26, 2020, 11:45:59 AM »
Hi.
you can not use 'Use Owner' with a 'Run Fsm' action. (it does not know the owner)
You need to target the object.

To do this Create a variable then at the bottom check 'Inspector'
Now it is exposed in the 'run fsm' action.
Place the object with the animator there (or with a variable).