1. We need a hook for all entities
     
  2. Wulf

    Wulf Community Admin

    OnEntityDeath or OnEntityTakeDamange should work just fine.
     
  3. 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?
     
  4. Wulf

    Wulf Community Admin

    Pretty sure those animals aren't dying, they are simply being forcefully removed.
     
  5. Trees are not BaseCombatEntity. It's hard to keep track of when they are cut down. You have to write shitcode
     
  6. 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.
     
  7. 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
  8. 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.