![]() |
Ok. I can't stand this...
Help me. Ever since Graal 2.04, I have been having trouble with npcserver. I can't even get a frickin keydown event to work!
NPC Code: I can touch it, because Touched works, but it won't work when the key A is pressed! ARG! Anyone care to help? |
well keydown only works in a timer I think
|
oh yea it is
lol it is in a timer I didn't look at it all hehe..
well I beleve it has to be clientside also though... because like in my gravity script I have it in the npc server but clientside... |
But the 'with' command makes it so the script works with the player... Hmm. I don't like how that was put...
NPC Code: To my knowledge, the 'with' command is making the enclosed script work for that player... |
No....keydown doesn't work server side. Thats a problem with this...I made a balloon pumping event, but online it didn't work because of a few things:
1) Since keydown can only be reconized clientside, I had to set variables client side that were effected by keydown... 2) Since clientside variables can't be read serverside (according to...I forgot who...) it would be impossible for that script to work the way I want it to... So instead, make a weapon, and make it use triggeraction....you could do basicly the same thing |
Quote:
|
Quote:
|
=P Thanks for your help. I finally got the keydown event to work. You were right, it DOES have to be clientside. Now, the only thing that is stoping my script from working (I think) is the @#$%#$ replacegani commands. x_x Thanks for your help!
|
replaceani
not replacegani |
Or you could just put the keydown thing in a system NPC which does a triggeraction when the keydown is done.
|
Thanks for your help. I fixed my problems and everything is working correctly. =P Thanks again.
|
| All times are GMT +2. The time now is 08:37 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.