We need a hook for all entities
Solved OnEntityKilled hook for all entities
Discussion in 'Rust Development' started by Kovalev PWnz, Jun 16, 2015.
-
Wulf Community Admin
OnEntityDeath or OnEntityTakeDamange should work just fine.
-
This does not work when the server deletes entities!
Example:
del autospawn/animals
Which hook should I use?
[DOUBLEPOST=1434412986][/DOUBLEPOST]Or the server removes dead body.
Which hook should I use? -
Wulf Community Admin
-
Trees are not BaseCombatEntity. It's hard to keep track of when they are cut down. You have to write shitcode
-
There is a big difference between killing and destroying, and what you are asking is destroying. The trees can actually easily be done with a minor workaround in the OnGather hook. And a I don't really see why a hook that triggers on deleting entities like with the del command you specified is something of use.
-
There should be a hook, reverse OnEntitySpawn. I was not interested in the type of object, BaseCombatEntity or any other. To write or delete data in a database or in a file or somewhere else
Last edited by a moderator: Jun 16, 2015 -
I agree with Mughisi and wulf that the hook would serve no purpose if it was only used to track object deletion. If you need it you'll need to use the patcher to add the hook for your own custom install.