playMaker

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

ramones

  • Playmaker Newbie
  • *
  • Posts: 42
    • View Profile
[SOLVED]Variables local to FSM but global to FSM states
« on: April 01, 2013, 03: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 02, 2013, 11:02:15 PM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14126
  • Official Playmaker Support
    • View Profile
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
    • View Profile
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: 14126
  • Official Playmaker Support
    • View Profile
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
    • View Profile
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.