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?
I'm looting corpses all day and this hook doesn't seem to get called.Code:object CanLootEntity(LootableCorpse corpse, BasePlayer player) { Puts("CanLootEntity works!"); return null; }
Solved CanLootEntity hooks not triggering?
Discussion in 'Rust Development' started by No Name Brand, Jun 3, 2018.
-
Wulf Community Admin
Reverse the arguments, not sure why they are reversed in the docs or if/when they got changed.
-
Thanks, it is working now.
