View Single Post
  #3  
Old 04-18-2002, 07:19 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Re: Re: Weapon won't deactivate :(

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 :/
__________________
Reply With Quote