AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [solved]when is current weapon changed but event curweapon not called? (https://forums.alliedmods.net/showthread.php?t=117252)

Owyn 01-30-2010 11:04

[solved]when is current weapon changed but event curweapon not called?
 
just wondering

Bugsy 01-30-2010 14:10

Re: when is current weapon changed but event curweapon not called?
 
any time you change weapons curweapon will be called

Arkshine 01-30-2010 14:11

Re: when is current weapon changed but event curweapon not called?
 
Quote:

Originally Posted by Owyn (Post 1072890)
just wondering

If you are looking for hook a weapon deploy, use Ham_Item_Deploy, it will be called one time.

Owyn 01-30-2010 16:52

Re: when is current weapon changed but event curweapon not called?
 
so Ham_Item_Deploy will be called only and everytime when user got new weapon in the hand?

*no i was looking if curweapon may fail cuz i'm trying to find the error

ConnorMcLeod 01-30-2010 17:01

Re: when is current weapon changed but event curweapon not called?
 
Yes.

For CurWeapon, i can't remember when it is not called, i think it's when you reload, and then shot, but when you change weapon it should always be called.

Owyn 01-31-2010 04:21

Re: when is current weapon changed but event curweapon not called?
 
is there a way to register ham deploy for everything without a loop for all weapons?

Arkshine 01-31-2010 05:58

Re: when is current weapon changed but event curweapon not called?
 
no.


All times are GMT -4. The time now is 07:19.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.