Home   Help Search Login Register  

Author Topic: Tracking a key  (Read 407 times)

0 Members and 2 Guests are viewing this topic.

Spence69

  • Guest
Tracking a key
« on: 18 Jun 2003, 12:13:16 »
Is it possible to put into a script a line that tracks for a press of a key

for example it might look some thing like

?(pressed t):goto "start"


Offline Burn

  • Members
  • *
Re:Tracking a key
« Reply #1 on: 18 Jun 2003, 14:01:13 »
Hi Spence69 :wave:… And, no I don't think so :-\… The only way you could do that is by adding a action to your player. I don't think it is possible to assign a certain Key to activate a script :-\… But what the hell do I know, I'm no scripting Guru ::) :P ;D…
Aaanyways :P… here's the correct syntax for addAction:

player addAction ["name","script.sqs"]

This will add a new action to the player's Action menu. "name" is the text to be displayed for the action. When the action is selected from the menu, the script named "script.sqs" will start.

Hope that helped ;)
 :joystick:

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Tracking a key
« Reply #2 on: 18 Jun 2003, 15:57:43 »
no way 2 assign actions 2 keys

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta