Jump to content

Prim script with keyboard reaction


cmeira
 Share

You are about to reply to a thread that has been inactive for 4811 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hi, i'm new in sl foruns and new in lsl

 

i need a prim that can react with keyboard press

 

for example, when someone with my object attach press "A" it says something

 

if you can help i'll be very gratfull :)

 

thanks

Link to comment
Share on other sites

the only keyboard presses that can cause a response from the script are.

via llTakeControls
Move forward control ( or W)
Move back control ( or S)
Move left control (⇧ Shift- or ⇧ Shift-A [ or A in mouselook])
Move right control (⇧ Shift- or ⇧ Shift-D [ or D in mouselook])
Rotate left control ( or A)
Rotate right control ( or D)
Move up control (PgUp or E)
Move down control (PgDn or C)
Left mouse button control
Left mouse button control while in mouselook

or via gestures (which can work with the function keys F2-F12 and can be combined withe ctrl or shift), you can chat control messages to a script listening with llListen

Link to comment
Share on other sites

Another , very unsecure approach is to make a gesture that "Says" a command on a channel the prim is listening for.  You press the key for the gesture,  it says the command, the prim hears it and acts appropriately.

 

 I am not at home so cannot give you an example gesture right now.  If you would like one IM me in-world and I will give it to you later today when I can get online.

 

- Clarke

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4811 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...