playMaker

Author Topic: [SOLVED] Access public float  (Read 1104 times)

Kaikoura

  • Playmaker Newbie
  • *
  • Posts: 23
[SOLVED] Access public float
« on: December 14, 2021, 09:41:36 AM »

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 :)
« Last Edit: December 15, 2021, 11:04:30 AM by Alex Chouls »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Access public float
« Reply #1 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)

have a look at the Playmaker API

Kaikoura

  • Playmaker Newbie
  • *
  • Posts: 23
Re: Access public float
« Reply #2 on: December 15, 2021, 05:30:05 AM »
I didn´t know you can do that. That´s great.
It works, thanks!