Detect Shoot
Why doesnt it print in the chat when i shoot with a USP?
it doesnt print anything Code:
RegisterHam( Ham_Weapon_PrimaryAttack, "weapon_usp", "Ham_Attack" )Code:
public Ham_Attack( entity ) |
Re: Detect Shoot
Retrieve pev_owner with pev().
|
Re: Detect Shoot
I think this is not the write forwards to use it to detect when you shoot, try use TraceAttack
|
Re: Detect Shoot
Quote:
|
Re: Detect Shoot
RegisterHam( Ham_Weapon_PrimaryAttack, "weapon_usp", "Ham_Attack" )
will be called when +attack is used even if the weapon has 0 ammo |
Re: Detect Shoot
Quote:
|
Re: Detect Shoot
Test my code!
PHP Code:
PHP Code:
|
| All times are GMT -4. The time now is 16:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.