playMaker

Author Topic: Send Message..Can't send the Owner as a parameter  (Read 2249 times)

grimmy

  • Junior Playmaker
  • **
  • Posts: 70
Send Message..Can't send the Owner as a parameter
« on: April 15, 2014, 08:18:04 AM »
I'm trying to use send a message from an FSM which adds a box collider in script.

However, my script requires a gameObject argument. (which defines the object to place the component on)

For some reason I cant seem to pass Use Owner in send message like I can normally.

How can I achieve this?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Send Message..Can't send the Owner as a parameter
« Reply #1 on: April 15, 2014, 10:43:21 AM »
Hi,

 where did you get this action?

 create a fsmGameObject called "me" or "owner", and use the action "get owner", then you can inject "me" in that object field.

bye,

 Jean

grimmy

  • Junior Playmaker
  • **
  • Posts: 70
Re: Send Message..Can't send the Owner as a parameter
« Reply #2 on: April 16, 2014, 07:45:08 AM »
Cool cheers!

The action is just a renamed Send Message action :)

I rename pretty much everything so I can read what's going on. Adding comments fields takes too long for me :)