playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
How do I get a variable from a js script using playMaker?[SOLVED]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: How do I get a variable from a js script using playMaker?[SOLVED] (Read 3385 times)
spiralKing
Junior Playmaker
Posts: 50
How do I get a variable from a js script using playMaker?[SOLVED]
«
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?
«
Last Edit: August 08, 2013, 03:59:06 AM by jeanfabre
»
Logged
sebaslive
Hero Member
Posts: 572
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.
Logged
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
Logged
sebaslive
Hero Member
Posts: 572
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.
Logged
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
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
How do I get a variable from a js script using playMaker?[SOLVED]