Skip to main content

CanLootEntity

Usage​

  • Called when the player starts looting a BaseRidableAnimal, ContainerIOEntity, DroppedItemContainer, LootableCorpse, ResourceContainer, or StorageContainer
  • Return a non-null value to override default behavior

Examples​

""
object CanLootEntity(BasePlayer player, BaseRidableAnimal animal)
{
Puts("CanLootEntity works!");
return null;
}
""
object CanLootEntity(BasePlayer player, ContainerIOEntity container)
{
Puts("CanLootEntity works!");
return null;
}
""
object CanLootEntity(BasePlayer player, DroppedItemContainer container)
{
Puts("CanLootEntity works!");
return null;
}
""
object CanLootEntity(BasePlayer player, LootableCorpse  corpse)
{
Puts("CanLootEntity works!");
return null;
}
""
object CanLootEntity(BasePlayer player, ResourceContainer container)
{
Puts("CanLootEntity works!");
return null;
}
""
object CanLootEntity(BasePlayer player, StorageContainer container)
{
Puts("CanLootEntity works!");
return null;
}