Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: lin0603 on March 11, 2014, 03:32:15 AM

Title: Get Float from a script
Post by: lin0603 on March 11, 2014, 03:32:15 AM
Hi :

I'm new to programming.

And Now i tried to get Float from a script...
(Or it could be Sent float to a playmaker fsm)
so i follow https://hutonggames.fogbugz.com/default.asp?W329 (https://hutonggames.fogbugz.com/default.asp?W329)
and try to use Get Component with it...

it took me two days :'( but i still cant make it work..

There is a tutorial from Youtube is using Java but what i need is using C#
Is it possible anyone could make a simple example for me?

Thanks,

Lin

Title: Re: Get Float from a script
Post by: jeanfabre on March 11, 2014, 06:50:15 AM
Hi,

you simply need to use the action "get property", drag that component onto playmaker state stack and it will prompt you a selection where you can select "get property" and it will list all public variables of same component.


bye,

 Jean