playMaker

Author Topic: How to find the states, a specific global variable is used? [SOLVED]  (Read 2496 times)

ergin

  • Junior Playmaker
  • **
  • Posts: 86
I make use of right click a variable and goto the state that it is used. But it doesn't work for global variables. Is there a way to find where a global variable is used. As the project grows things become confusing.

Thanks.
« Last Edit: April 05, 2016, 01:02:20 PM by Alex Chouls »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: How to find the states, a specific global variable is used?
« Reply #1 on: April 05, 2016, 07:07:02 AM »
Hi,
Can you give some more information?
what Actions are you using and can you make some pictures of it or a short video showing whats going on :)

ergin

  • Junior Playmaker
  • **
  • Posts: 86
Re: How to find the states, a specific global variable is used?
« Reply #2 on: April 05, 2016, 07:42:35 AM »

ergin

  • Junior Playmaker
  • **
  • Posts: 86
Re: How to find the states, a specific global variable is used?
« Reply #3 on: April 05, 2016, 07:48:50 AM »
Thank you djaydino.

no state list opens when a global variable is right clicked. I can't remeber where I used them inside large FSM's.(I have the bad habit of keeping many things inside single fsm) :)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: How to find the states, a specific global variable is used?
« Reply #4 on: April 05, 2016, 11:26:23 AM »
Hi,
Ah ok,
when you selected a variable on the global window you will be directed to that fsm
and indeed not directly to the state.

what you need to do after you selected a global is :

Select the variable tab and the globals that you are using should also be listed there.

right click on the variable you are looking for and you will get a list,

it will show in what states it is used like this :
Quote
"state 1"
and it will also show in which other fsm's the variable is used like this :
Quote
"GameObject:fmsname"

click on them to go to the state/fsm.

ergin

  • Junior Playmaker
  • **
  • Posts: 86
Re: How to find the states, a specific global variable is used?
« Reply #5 on: April 05, 2016, 11:39:11 AM »
:) Thanks djdino. It works. 8)

I think I missed that.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: How to find the states, a specific global variable is used?
« Reply #6 on: April 05, 2016, 11:46:09 AM »
np,
i had to figure it out myself before i could answer your question   :P :P