playMaker

Author Topic: GetFsmFloat value set variable  (Read 1880 times)

maconbot

  • Playmaker Newbie
  • *
  • Posts: 1
GetFsmFloat value set variable
« on: September 07, 2012, 11:12:19 PM »
I am trying to set a FsmFloat the same way I set a Fsm String and it won't let me says:
The best overloaded method match for `HutongGames.PlayMaker.Fsm.Event(string)' has some invalid arguments

I have tried many combinations, ultimately this seemed the closest:
FsmFloat f1 = character.FsmVariables.GetFsmFloat("delay").Value;
FsmFloat f2 = character.FsmVariables.GetFsmFloat("zero").Value;
f1.Value = f2.Value

...it does nothing.  Thank you for your time.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: GetFsmFloat value set variable
« Reply #1 on: September 10, 2012, 04:44:01 AM »
Hi,

 your error is in how to treat the FsmFloat to set it:

Code: [Select]
FsmFloat f1 =
you need to do it this way:

Code: [Select]
FsmFloat f1 = character.FsmVariables.GetFsmFloat("delay");
FsmFloat f2 = character.FsmVariables.GetFsmFloat("zero");
f1.Value = f2.Value

bye,

 Jean