Hook when an entity is destroyed
Is there any way to hook when an entity is destroyed? Example: a player has a weapon and we remove it, at this moment we need to do something (disable some hooks). Is it possible to hook this moment?
|
Re: Hook when an entity is destroyed
FM_OnFreeEntPrivateData, Ham_Item_Kill, Ham_RemovePlayerItem, Ham_Killed.
|
Re: Hook when an entity is destroyed
FM_OnFreeEntPrivateData is also called when map starts. Ham_Item_Kill/Ham_RemovePlayerItem/Ham_Killed doesn't work but thanks.
It works with FM_RemoveEntity (thanks to voed). |
| All times are GMT -4. The time now is 07:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.