playMaker

Author Topic: Playmaker & TargetPro question  (Read 1843 times)

Caffeen

  • Playmaker Newbie
  • *
  • Posts: 10
Playmaker & TargetPro question
« on: October 10, 2014, 03:00:11 PM »
Sorry if this is really obvious, but is there any easy way for an FSM on a Game Object with a Fire Controller to get a reference to the Game Object Projectile it just fired, or an FSM on a Game Object with a Projectile component to get a reference to the Game Object of the Fire Controller that just fired it?

Basically I'm looking for an easy way (Or if not easy, reliable) for my Fire Controllers and Projectiles to communicate. Right now the methods I'm using feel really shaky and unreliable, so I'd really appreciate any advice!

Thanks!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Playmaker & TargetPro question
« Reply #1 on: November 27, 2014, 02:29:48 AM »
Hi,

 Have you been able to make some progress on this?

 Bye,

 Jean

nighty9

  • Playmaker Newbie
  • *
  • Posts: 18
Re: Playmaker & TargetPro question
« Reply #2 on: November 30, 2014, 10:25:23 PM »
Hi,

I don't know if Fire Controller is something specific or something you created but what i do with my spell casting system is quite similar, i instantiate the "bullet" as a child of my "Fire Controller", use the action "Get Parent" to store the Fire Controller game object, then i throw my spell wherever.

Cheers,
Nico

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Playmaker & TargetPro question
« Reply #3 on: December 02, 2014, 11:10:52 AM »
Hi,

 The Fire Controller is from TargetPro.

 Bye,

 Jean