playMaker

Author Topic: How to get value from script?  (Read 1603 times)

alexlange

  • Playmaker Newbie
  • *
  • Posts: 16
How to get value from script?
« on: October 19, 2013, 10:57:02 AM »
Hi
I'm trying to fetch a return from my script.
public int GetHP(Gameobject sender)
It's a manager script and store bunches of list<T>, GetHP() can identify each sender and return correct value from lists.
First come to my mind is send message, but it looks like doesn't support returns, isn't it?
Any help? Thank you!

redikann

  • Full Member
  • ***
  • Posts: 174
Re: How to get value from script?
« Reply #1 on: October 19, 2013, 02:18:08 PM »
 Dragging the script onto the Action editor portion of playmaker should reveal get and set property of a component. Public var should be exposed.