SP3 Useful controller scripts
-
@cphillips said:
slider("Zero",0) <--Slider has a default position of 0 instead of 0.5
.How do I make the keyboard keys start at default position of Zero
or can't I?
like what I want is to not be able go backwards with a motor but start at zero -
rightx-0.5For keyboard right/left
-
Any chance a guide or tutorial will be made to explain how to use these codes? It doesn't seem like something you could just pick up and figure out in a few minutes. Oh, and what do you type in the box to duplicate the object connected to the joint, like in the preview video?
Oh, and to make thrusters/magnets controllable:
(0.5-righty)*100000
0.5-: not necessary, but allows reverse directions. 0.8- would make it go 80%forward, 0.5- makes it half and half, so neutral means no thrust, and 0.2- would make it go 20% forwards.
right: right or left, which joystick to use/ wasd or arrow keys.
y: x or y, left and right, or up and down.
*100000: a *, and the strength of the thruster/magnet.
-
Will the beta version have the copy function?
-
I just figured out how to make the copy function work. Its now called Emitters and it will be in next version.
-
do you know what controller scripts are used to make a keyboard key do an action
(like the spacebar, or letters other than WAS and D),
or for a slider to multiply an object like in the pre-release video?Also, do you know why the script
(lefty-0.5)*300+slider('hover')*150won't work in a thruster controller box? without the '-0.5', it seems to work, but I can't get it to do what I'm trying to.
-
@unknownuser said:
do you know what controller scripts are used to make a keyboard key do an action
(like the spacebar, or letters other than WAS and D),
or for a slider to multiply an object like in the pre-release video?Also, do you know why the script
(lefty-0.5)*300+slider('hover')*150won't work in a thruster controller box? without the '-0.5', it seems to work, but I can't get it to do what I'm trying to.
that worked fine for me though the controls were switched so I did this
-(lefty-0.5)*300+slider('hover')*150 -
how do you make a motor controled by the arrow keys and have reverse?
-
righty-0.5
righty-0.5
right: controlled by right joystick, or keyboard arrow keys. left would be left joystick, or WASD keys.
y: y= up and down. x=left and right.
-0.5: makes .5 of the speed going backwards, in other words, allows reverse. you could also put 0.5- before righty, if the motor is going in the wrong direction.
Oh, and Phy, thanks; but for me, only half the controls were reversed: I managed to fix it after though.
-
Thanks

-
@unknownuser said:
do you know what controller scripts are used to make a keyboard key do an action
(like the spacebar, or letters other than WAS and D),
or for a slider to multiply an object like in the pre-release video?Also, do you know why the script
(lefty-0.5)*300+slider('hover')*150won't work in a thruster controller box? without the '-0.5', it seems to work, but I can't get it to do what I'm trying to.
Not yet. But I think I am going to add something like
key("space") or key("1")
Mulitply an object will be the new emitters.
Your script should work as far as I can tell.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginAdvertisement