playMaker

Author Topic: How do I get a variable from a js script using playMaker?[SOLVED]  (Read 3336 times)

spiralKing

  • Junior Playmaker
  • **
  • Posts: 50
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?
« Last Edit: August 08, 2013, 03:59:06 AM by jeanfabre »

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: How do I get a variable from a js script using playMaker?
« Reply #1 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.
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

spiralKing

  • Junior Playmaker
  • **
  • Posts: 50
Re: How do I get a variable from a js script using playMaker?
« Reply #2 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

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: How do I get a variable from a js script using playMaker?
« Reply #3 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.
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

spiralKing

  • Junior Playmaker
  • **
  • Posts: 50
Re: How do I get a variable from a js script using playMaker?
« Reply #4 on: August 07, 2013, 05:17:54 PM »
did it, it worked

thanks a lot