AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Shoot Event (https://forums.alliedmods.net/showthread.php?t=298727)

edon1337 06-21-2017 09:58

Shoot Event
 
Hi,

Which event is called when a bullet is shot? Maybe TraceAttack is an option but it isn't the proper event.

HamletEagle 06-21-2017 12:38

Re: Shoot Event
 
Use PlaybackEvent.

baneado 06-21-2017 13:18

Re: Shoot Event
 
Playbackevent is called when a player shoots.
TraceAttack is called when a player shoots to other entity
TakeDamage is called when a player shoots and take damage to other entity
Be careful: TraceAttack and TakeDamage can be called by a plugin using ExecuteHam

You can use Ham_Weapon_PrimaryAttack too. But pay attention about 0 ammo and reloading

edon1337 06-21-2017 13:40

Re: Shoot Event
 
Thanks both, Playback is what I needed.


All times are GMT -4. The time now is 22:52.

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