playMaker

Author Topic: Cannot add "SendEvent" within an Animation [WORKAROUND]  (Read 2022 times)

Jbro

  • Playmaker Newbie
  • *
  • Posts: 8
Cannot add "SendEvent" within an Animation [WORKAROUND]
« on: February 14, 2014, 08:08:20 AM »
  • I created a new empty GameObject, attached my Animator component (with 1 animation), and added a new playmaker FSM to the gameobject.
  • I look inside the Animation tab and find SendEvent listed in the dropdown list of available. Everything is good.
  • I then add another FSM to the gameobject and add a new event, but I don't see any functions in the dropdown list. The list is totally empty.

How can I add events, specifically SendEvent, within an animation with multiple FSM?
« Last Edit: February 14, 2014, 07:38:13 PM by Jbro »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Cannot add "SendEvent" within an Animation
« Reply #1 on: February 14, 2014, 10:27:31 AM »
An Animator Event or an FSM transition event?

You can check them as global in the Event tab of the FSM, that lets it be used in any FSM in the scene.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Cannot add "SendEvent" within an Animation
« Reply #2 on: February 14, 2014, 12:03:24 PM »

Jbro

  • Playmaker Newbie
  • *
  • Posts: 8
Re: Cannot add "SendEvent" within an Animation
« Reply #3 on: February 14, 2014, 07:37:47 PM »
I see.

Ok, well I guess I just need to work around it and forward all the events to their proper FSM using a dedicated animation event forwarding game object.

edit: It seems that this is not such an easy thing to do. Having trouble figuring out how to forward these events to individual objects in the scene. I'll wait for your update!!
« Last Edit: February 14, 2014, 10:48:28 PM by Jbro »