Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Keydown. (https://forums.graalonline.com/forums/showthread.php?t=6078)

toad1413 06-29-2001 05:41 PM

Keydown.
 
How do you use the keydown thing? I really have no idea.

Solareon 06-29-2001 05:45 PM

do this
 
timeout 0.05;
if (timeout) {
if (keydown(0)) {
script here
}
}

you can put more keydowns in the timeout if

entravial 06-29-2001 06:40 PM

lol u just got told that

toad1413 06-30-2001 07:07 AM

Re: do this
 
Quote:

Originally posted by Solareon
timeout 0.05;
if (timeout) {
if (keydown(0)) {
script here
}
}

you can put more keydowns in the timeout if

Well, I knew that, but what I really want to know is what the keydown all the letters are. I know that (keydown(4)) is d, but I don't know the rest.

Tyhm 06-30-2001 07:10 AM

It says right next to the command.
0=up
1=left
2=down
3=right
4=D
5=S I think
6=A probably, then you got M Q P and like Space or Enter, it's weird.

Poogle 07-20-2001 06:03 AM

Quote:

Originally posted by Tyhm
It says right next to the command.
0=up
1=left
2=down
3=right
4=D
5=S I think
6=A probably, then you got M Q P and like Space or Enter, it's weird.

6 is A
Space Bar and S are the same


All times are GMT +2. The time now is 11:03 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.