Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Changeing gears in cars; getting input from keyboard while driving

Dan Steed
Registered User
Join date: 21 Sep 2004
Posts: 1
03-21-2005 19:48
I want to make a car script like a few of the second life cars have that allow you to change the top speed of the car by pressing 'page up' or 'page down' key (or a different keys). I want to know how to create the code to get to something like:.

if user presses 'page up'
then go 5 increments faster
if user presses 'page down'
then go 5 increments slower


the going faster or slower part will be easy, it is just figureing out how to get the user input of the 'page up' key.

Does anyone have any idea how to get keyboard input like this?
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
03-21-2005 22:57
Yes. Page Up and Page Down correspond to "CONTROL_UP" and "CONTROL_DOWN" in LSL constants. :D

However, we don't have true support for custom keybinds, if that's what you're asking. :(
_____________________
---