![]() |
Weapon won't deactivate :(
For some inane reason, I cannot get my script to disable when I fire the weapon again...
NPC Code: I've also tried using the flag I have it set, but nothing seems to work :/ I've probably done something wrong, but I can't understand what it coud be |
I wouldn't use use weaponfired in a timeout.
I would help you with the script but I have to get to school. |
Re: Re: Weapon won't deactivate :(
Quote:
|
It'd probably be more effective if you did:
NPC Code: |
Quote:
|
Quote:
Here's the entire script so far: NPC Code:// NPC made by GregoryYoshi This is an NPC I'll be adding to my PW (when it's done) that changes the way players chat on a 1on1 basis...I may just wind up putting in a keydown check routine so that players can exit the chat easily. I'll also have a special chatroom and since I hide the minimap, I may have a small window that displays toalls :) |
Quote:
|
Quote:
Once I fire the weapon, I can't use 'D' again to turn it off. |
Quote:
I suppose I could then use disabledefmovement instead or, like I said, add in a keydown check :/ |
man i miss this place
o well, maybe i shall return in a few months or so, lets just watch |
Quote:
Quote:
|
-FooL-
You could do this: if (weaponfired || timeout && keydown(6)) Or whatever D button is... of course then you'd hafta do a check to make sure it didn't just cancel itself because of the timeout. *shrug* |
then put it w/ a second variable. if (this.use==2) so that way have this.use==1 be the action. and like if (this.use==1&&keydown(4)) this.use=2.
---Shifter |
| All times are GMT +2. The time now is 05:26 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.