Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Kaikoura on December 14, 2021, 09:41:36 AM

Title: [SOLVED] Access public float
Post 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 :)
Title: Re: Access public float
Post by: djaydino on December 14, 2021, 11:14:38 AM
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)
Title: Re: Access public float
Post by: Kaikoura on December 15, 2021, 05:30:05 AM
I didn´t know you can do that. That´s great.
It works, thanks!