Skip to content

OnLootPlayer

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnLootPlayer( BasePlayer instance, BasePlayer player )
{
    Puts( "OnLootPlayer works!" );
}

Location

  • BasePlayer::RPC_LootPlayer(BaseEntity/RPCMessage msg)
csharp
//---
	if (player.inventory.loot.StartLootingEntity(this, true))
	{
		player.inventory.loot.AddContainer(this.inventory.containerMain);
		player.inventory.loot.AddContainer(this.inventory.containerWear);
		player.inventory.loot.AddContainer(this.inventory.containerBelt);
		Interface.CallHook("OnLootPlayer", this, player);
		player.inventory.loot.SendImmediate();
		player.RadioactiveLootCheck(player.inventory.loot.containers);
		player.ClientRPC<string>(RpcTarget.Player("RPC_OpenLootPanel", player), "player_corpse");
	}
}

Released under the MIT License.