playMaker

Author Topic: Get Controller Hit Info from a different Gameobject  (Read 2488 times)

Flying Robot

  • Sr. Member
  • ****
  • Posts: 293
  • Od ton yebo redro
    • Flying Robot Studios
Get Controller Hit Info from a different Gameobject
« on: September 14, 2013, 09:03:42 AM »
Hi,

Can I get a variation of Get Controller Hit info. Currently it can get info from it's own character controller. I want to get info from a different gameobject with character controller.

Thanks

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get Controller Hit Info from a different Gameobject
« Reply #1 on: September 16, 2013, 02:28:44 AM »
Hi,

 Typically, you would be better off forwarding the collision infos.

 have a dedicated fsm on your gameObject, that when it collides, store the info and in turn fire an a custom global event like "PLAYER COLLISION ENTER" etc etc.

If another fsm wants to access this manually, it simply need to get to that fsm and get the fsm variables related to the last collision info.

does that make sense? I think it will be easier then trying to make an action for this, as the collision info are very much tight inside the fsm.

bye,

 Jean