1. Can anyone help with some example code on how can I track a spawned box's death. OnEntityKill or OnEntityDeath ?
     
  2. Calytic

    Calytic Community Admin Community Mod

    Code:
    void OnEntityDeath(BaseCombatEntity entity, HitInfo info)
    {
        if(entity is StorageContainer && entity.net.ID == myBoxID) {
            // do something clever
        }
    }