Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: spiralKing on August 07, 2013, 12:11:06 PM

Title: How do I get a variable from a js script using playMaker?[SOLVED]
Post by: spiralKing on August 07, 2013, 12:11:06 PM
I have a bool var, I'm trying to check if TRUE before triggering an Event

is it even possible to do this in playMaker?
Title: Re: How do I get a variable from a js script using playMaker?
Post by: sebaslive on August 07, 2013, 12:44:53 PM
you can use (get property). just drag the script into a state and it will ask you to get or set property and from there it will have a drop down menu which should contain your bool variable that you can see if it is checked.
Title: Re: How do I get a variable from a js script using playMaker?
Post by: spiralKing on August 07, 2013, 12:50:36 PM
I'm not seeing my variable, I'm only getting (name, name.length, text, and text.length), nothing else

I've tried setting the bool to public, even static but still nothing
Title: Re: How do I get a variable from a js script using playMaker?
Post by: sebaslive on August 07, 2013, 12:55:45 PM
Is the script attached to the object? You need to drag the script from the object onto the state.
Title: Re: How do I get a variable from a js script using playMaker?
Post by: spiralKing on August 07, 2013, 05:17:54 PM
did it, it worked

thanks a lot