AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   weapon change event (https://forums.alliedmods.net/showthread.php?t=162765)

avril-lavigne 07-22-2011 17:52

weapon change event
 
I want to add a sound when user is switching weapon, how to catch that moment
I searched and found this http://forums.alliedmods.net/showthread.php?t=117252

but no code provided

nikhilgupta345 07-22-2011 17:53

Re: weapon change event
 
Hook Ham_Item_Deploy for all weapons.

(Make a loop of weapons and register ham_item_deploy to the same function, unless you want different sounds for different weapons).

avril-lavigne 07-22-2011 17:58

Re: weapon change event
 
ok


All times are GMT -4. The time now is 01:08.

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