playMaker

Author Topic: simple question about variables from playmaker to c#  (Read 1860 times)

goliath520

  • Playmaker Newbie
  • *
  • Posts: 7
simple question about variables from playmaker to c#
« 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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: simple question about variables from playmaker to c#
« Reply #1 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