Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Kaikoura on December 14, 2021, 09:41:36 AM
-
(https://imgur.com/a/V198q69)
https://imgur.com/a/V198q69 (https://imgur.com/a/V198q69)
Hey,
I want to change the public float "Run Speed" on my Character Controller Script. Is there a way to directly acces the public float value inside Playmaker?
Thanks in advance :)
-
Hi.
Drag and drop the component in the actions state window, the select 'Set Properties'
this will add the Set Properties action and you can search for the variable.
Since this is using mirroring it would be better to make a dedicated action for it.
(mirroring is slower and might have issues when building to certain platform and you will need to use Linker Wizard) (http://hutonggames.com/playmakerforum/index.php?topic=11126.0)
have a look at the Playmaker API (https://hutonggames.fogbugz.com/default.asp?W1181)
-
I didn´t know you can do that. That´s great.
It works, thanks!