Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: alexlange on October 19, 2013, 10:57:02 AM

Title: How to get value from script?
Post by: alexlange 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!
Title: Re: How to get value from script?
Post by: redikann 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.