1. Trying to prevent looting in certain scenarios. Copied the code right from the documentation but it doesn't seem to catch. Does this get bypassed if the player is admin? Or perhaps there is some sort of dependency?

    Code:
            object CanLootEntity(LootableCorpse corpse, BasePlayer player)
            {
                Puts("CanLootEntity works!");
                return null;
            }
    I'm looting corpses all day and this hook doesn't seem to get called.
     
  2. Wulf

    Wulf Community Admin

    Reverse the arguments, not sure why they are reversed in the docs or if/when they got changed.
     
  3. Thanks, it is working now.