playMaker

Author Topic: conditional expression not finding global variable [SOLVED]  (Read 2679 times)

krane

  • Junior Playmaker
  • **
  • Posts: 63
conditional expression not finding global variable [SOLVED]
« 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?
« Last Edit: January 28, 2017, 11:00:50 AM by krane »

krane

  • Junior Playmaker
  • **
  • Posts: 63
Re: conditional expression not finding global variable
« Reply #1 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.

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
Re: conditional expression not finding global variable
« Reply #2 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.

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: conditional expression not finding global variable
« Reply #3 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.
Available for Playmaker work

krane

  • Junior Playmaker
  • **
  • Posts: 63
Re: conditional expression not finding global variable
« Reply #4 on: January 28, 2017, 11:00:38 AM »
thanks