playMaker

Author Topic: Test Variable From Script in FSM?  (Read 1588 times)

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 126
    • Tumblr
Test Variable From Script in FSM?
« on: July 26, 2015, 02:02:56 AM »
Hi, I'd like to know if there's a way to test a variable in a script on the same object. Some help would be nice. The Send message only lets me run a function. I just want to test a bool from a script.

Thanks

DarkSoul

  • Playmaker Newbie
  • *
  • Posts: 37
Re: Test Variable From Script in FSM?
« Reply #1 on: July 26, 2015, 04:47:44 AM »
Hello,

You can use get property to get a script variable and assign it to a playmaker variable.
Then you can test that playmaker variable.

I hope this helps

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 126
    • Tumblr
Re: Test Variable From Script in FSM? [SOLVED]
« Reply #2 on: July 26, 2015, 06:04:57 AM »
Yep that helps, thanks!  :)