![]() |
keydown!!
how do i use keydown properly
my script only works for numbers can someone right a script for a Character key eg.o |
:)
This is how the script goes
if(keydown(1-2-3-4-5-6)){whateverhere} i thnk thats right not to sure about numbers... |
the keydown event doesn't work by itself
i usually run inside a timeout |
anyone tell me the whole script for pressing o
|
'keydown' isn't like a 'playertouchsme' command you have to contantly check for it through a timeout loop...
NPC Code: |
Quote:
all you have to do is mod that one i swear, why dont people just try anymore |
ummm i wrote:
if (created) { timeout=0.05; } if (timeout) { if (keydown(o)) { say2 works(); } timeout=0.05; } and it only says works when i press up |
ugh, there is no keydown for o.
0.1.2.3.4.5.6.7.8.9.10 Up.Left.Down.Right.A.S.D.Q... |
If you do keydown(o) and it only works when you press "up," there's a reason. The program thinks "o" is a variable name and since you didn't declare it before, it would be considered "0" and in the keydown() flag, a 0 is generated when the "up" key is hit.
|
I believe keypressed is a valid event you can use..... whether your using keydown or keydown2....
|
then how do they do the E and W keys on babylon??
|
Quote:
it's all in the newfeatures text file. |
Quote:
NPC Code: Quote:
|
| All times are GMT +2. The time now is 04:18 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.