Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: goliath520 on January 09, 2013, 04:00:11 PM

Title: simple question about variables from playmaker to c#
Post by: goliath520 on January 09, 2013, 04:00:11 PM
For some reason I can figure out all the complicated stuff but the really basic stuff just seems to not click. Right now I have a variable in playmaker and called setkey and I am trying to get the value in c# but it seems to be having a problem. The line I am using is: Num = theFsm.FsmVariables.GetFsmInt("setKey").Value;. but I keep getting the error nullreferenceexception.
Title: Re: simple question about variables from playmaker to c#
Post by: jeanfabre on January 10, 2013, 03:28:20 AM
hi,

 it must be then something very silly as always :)

isolate each variable, then you'll know which one is null

it's likely "theFsm" that is not assigned.

bye,

 Jean