1. Hello, do not tell how to get an instance of BasePlayer player who loot the container in the event
    Code:
    void OnPlayerLoot(PlayerLoot inventory, BaseEntity target)
    {
        Puts("OnPlayerLoot works!");
    }
    P. S. Sorry for any errors in the text, I do not know English and used Google translator.
     
  2. Calytic

    Calytic Community Admin Community Mod

    Code:
    BasePlayer player;
    if ((player = inventory.GetComponent<BasePlayer>()) == null)
        return;