playMaker

Author Topic: change variable in a script[SOLVED]  (Read 3381 times)

greg

  • Junior Playmaker
  • **
  • Posts: 68
change variable in a script[SOLVED]
« 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)
« Last Edit: April 04, 2013, 01:07:35 AM by jeanfabre »

greg

  • Junior Playmaker
  • **
  • Posts: 68
Re: change variable in a script
« Reply #1 on: March 11, 2013, 07:45:03 PM »
bump, to hopefully work on this tomorrow

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: change variable in a script
« Reply #2 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


greg

  • Junior Playmaker
  • **
  • Posts: 68
Re: change variable in a script
« Reply #3 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  :)