playMaker

Author Topic: [SOLVED]Variables local to FSM but global to FSM states  (Read 2840 times)

ramones

  • Playmaker Newbie
  • *
  • Posts: 42
[SOLVED]Variables local to FSM but global to FSM states
« on: April 01, 2013, 06:58:04 AM »
Hi,

I have been reading some threads about local FSM global variables. I mean variables that can be accessed by all states in a FSM but not from outside. It seems there was going to be added but I can't find them.

Could anybody help here?

Thanks in advance.
« Last Edit: April 03, 2013, 02:02:15 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Hi,

 There is now a global variable window ( from the playmaker menun under tools)

this is where you create global variables, then from within any actions, you can see them  ( if of the right type of course)

bye,

 Jean

ramones

  • Playmaker Newbie
  • *
  • Posts: 42
Hi!,

Yes, I'm aware of this global variables window. But this global variables are global to all playmaker FSM. I want variables global to just one FSM. Sorry if I can't explain it clearer.

Note: Sorry, it seems I posted to the wrong subforum :/

Cheers.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Hi,

 Within a fsm, the variable you declare are totally accessible for all actions defined in that fsm. I am not sure I am following.

bye,

 Jean

ramones

  • Playmaker Newbie
  • *
  • Posts: 42
Hi!,

Sorry for the delay. You are totally right jeanfabre. I had 12 hours of intense programming (C# + playmaker), I can't even remember why I posted this dumb question :/. Sorry for wasting your time.

Thanks in advance.