playMaker

Author Topic: Set Float to Multiple Values  (Read 1542 times)

Toharawk_

  • Playmaker Newbie
  • *
  • Posts: 2
Set Float to Multiple Values
« on: February 04, 2018, 07:53:30 AM »
Hi There  :)

i have a small problem with building a function in Playmaker.
Goal is to increase the Stamina of the Player with a global variable, like:

Set Float: max_stamina_float (value 1) to current_stamina (value 2) & bonus_stamina (value 3).

There is a Addon Package for Add Float Multiple. Is there any solution for the Set Function?

Best,
Toharawk

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Set Float to Multiple Values
« Reply #1 on: February 04, 2018, 07:53:38 PM »
Hi,
I think you need to use a float operator instead.

Toharawk_

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Set Float to Multiple Values
« Reply #2 on: February 05, 2018, 02:55:58 PM »
Works perfect, thanks!

Is there a way to use more then two values at the same time with the float operator?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Set Float to Multiple Values
« Reply #3 on: February 05, 2018, 05:07:59 PM »
Hi, there is a "Float add Multiple"
You could use a set float value to "reset" (set to 0 or any value you want) the variable where you are adding just before using the "Float add Multiple"