Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Moving a model on button press???

Asked by
Uroxus 350 Moderation Voter
10 years ago

How would I go about making my ship move when Im sat on a seat? Like if I pressed W it go forwards, S backwards and so on. Its a model, thats anchored and the 'water' im using in a huge mesh.

Im not asking for the script (Although that would be good c;) but a way Id go about doing this is what im really asking for. Thanks C: ~MrLego

1 answer

Log in to vote
0
Answered by
Tesouro 407 Moderation Voter
10 years ago

To detect the wasd movements, I suggest you to read this article. If your ship is anchored, you have to use some CFraming, and to make it smooth, a loop that checks the keyboard keys, if they are pressed, it keeps moving.

0
Wouldn't it be easier to use KeyDown to go and KeyUp to stop instead of a loop? TheStudentPilot 75 — 10y
0
yeah, the wiki suggests that, but if you unpress the key out of focus, it won't stop Tesouro 407 — 10y
Ad

Answer this question