Quote:
Originally posted by Kaimetsu
Ew, man, that's horrible. Scripts don't run all at once with all the relevant flags for that frame. Every frame, they run once for every event. That means you will never get weaponfired and timeout at the same time. Also, what the heck are you doing by setting/unsetting a flag every 0.05 seconds? Do you have any idea of the extra lag that causes?
|
I suppose you didn't read it very well, there's more to the script, I'm just not going to show it...instead of it being if (weaponfired && !timeout) {...} I was trying ...&& !client.chat) {...} I've done it before in a few other NPCs so I do not understand what is wrong :/