Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: krane on January 24, 2017, 09:12:45 AM

Title: conditional expression not finding global variable [SOLVED]
Post by: krane on January 24, 2017, 09:12:45 AM
I have a global int variable, rotationCount, stored on another game object.
My FSM conditional expression can't find the variable (either through the dropdown or through typing it out: rotationCount == 1) "Variable was not found 'rotationCount'.

If I use Get FSM variable I can get the FSM variable and the updated rotationCount just fine on the same state, so why can't my conditional find it?

?? Can conditional expressions only find string variables? If I change it to string it will find it fine, but why not be able to find integer variables?
Title: Re: conditional expression not finding global variable
Post by: krane on January 25, 2017, 10:20:18 AM
never mind. I discovered Int Compare. It would be good though to have the conditional expression work on more than strings.
Title: Re: conditional expression not finding global variable
Post by: elusiven on January 26, 2017, 05:41:00 AM
I don't think CE is looking for globals at all.. It's just using local variables, it doesn't have to be a string, I use this for INT or floats any others.
Title: Re: conditional expression not finding global variable
Post by: Fat Pug Studio on January 26, 2017, 08:11:08 AM
Conditional expression action IS using only local variables. You can work around it by getting the global variables and saving them to local, but it's a bit waste of resources.
Title: Re: conditional expression not finding global variable
Post by: krane on January 28, 2017, 11:00:38 AM
thanks