Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: maconbot on September 07, 2012, 11:12:19 PM

Title: GetFsmFloat value set variable
Post by: maconbot 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.
Title: Re: GetFsmFloat value set variable
Post by: jeanfabre 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