Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: greg on March 07, 2013, 12:27:42 PM

Title: change variable in a script[SOLVED]
Post by: greg on March 07, 2013, 12:27:42 PM
I wan't to alter the "maxForwardSpeed" variable in the "characterMotor" script attached to Unity's FPScontroller prefab, so i can have sprinting.

Whats the simplest way of doing this? I tried get component > set property, but the variables don't show.

Thanks

(i know theres other threads about this issue but i didn't really understand them, and they went into more complexity than i think i need)
Title: Re: change variable in a script
Post by: greg on March 11, 2013, 07:45:03 PM
bump, to hopefully work on this tomorrow
Title: Re: change variable in a script
Post by: jeanfabre on April 03, 2013, 07:48:35 AM
Hi,

 ok please find a custom action to do all this:

http://hutonggames.com/playmakerforum/index.php?board=19.0

bye,

 Jean

Title: Re: change variable in a script
Post by: greg on April 03, 2013, 10:37:14 AM
Thanks man, in the end i just made a FPS_controller in playmaker! Sure this will help a lot of people though  :)