Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ergin on April 05, 2016, 06:56:30 AM

Title: How to find the states, a specific global variable is used? [SOLVED]
Post by: ergin on April 05, 2016, 06:56:30 AM
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.
Title: Re: How to find the states, a specific global variable is used?
Post by: djaydino 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 :)
Title: Re: How to find the states, a specific global variable is used?
Post by: ergin on April 05, 2016, 07:42:35 AM
(http://www.ergin3d.com/images/play.jpg)
Title: Re: How to find the states, a specific global variable is used?
Post by: ergin 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) :)
Title: Re: How to find the states, a specific global variable is used?
Post by: djaydino 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.
Title: Re: How to find the states, a specific global variable is used?
Post by: ergin on April 05, 2016, 11:39:11 AM
:) Thanks djdino. It works. 8)

I think I missed that.
Title: Re: How to find the states, a specific global variable is used?
Post by: djaydino on April 05, 2016, 11:46:09 AM
np,
i had to figure it out myself before i could answer your question   :P :P