Skip to content

OnLootEntityEnd

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnLootEntityEnd( BasePlayer player, ContainerIOEntity instance )
{
    Puts( "OnLootEntityEnd works!" );
}
csharp
private void OnLootEntityEnd( BasePlayer player, DroppedItemContainer instance )
{
    Puts( "OnLootEntityEnd works!" );
}
csharp
private void OnLootEntityEnd( BasePlayer player, ItemBasedFlowRestrictor instance )
{
    Puts( "OnLootEntityEnd works!" );
}
csharp
private void OnLootEntityEnd( BasePlayer player, LootableCorpse instance )
{
    Puts( "OnLootEntityEnd works!" );
}
csharp
private void OnLootEntityEnd( BasePlayer player, StorageContainer instance )
{
    Puts( "OnLootEntityEnd works!" );
}

Location

  • ContainerIOEntity::PlayerStoppedLooting(BasePlayer player)
  • DroppedItemContainer::PlayerStoppedLooting(BasePlayer player)
  • ItemBasedFlowRestrictor::PlayerStoppedLooting(BasePlayer player)
  • LootableCorpse::PlayerStoppedLooting(BasePlayer player)
  • StorageContainer::PlayerStoppedLooting(BasePlayer player)
csharp
public virtual void PlayerStoppedLooting(BasePlayer player)
{
	Interface.CallHook("OnLootEntityEnd", player, this);
	SetFlag(Flags.Open, b: false);
	SendNetworkUpdate();
}
csharp
public void PlayerStoppedLooting(BasePlayer player)
{
	Interface.CallHook("OnLootEntityEnd", player, this);
	if (inventory == null || inventory.itemList == null || inventory.itemList.Count == 0)
	{
		Kill();
	}
	else
//---
csharp
public void PlayerStoppedLooting(BasePlayer player)
{
	Interface.CallHook("OnLootEntityEnd", player, this);
}
csharp
public void PlayerStoppedLooting(BasePlayer player)
{
	Interface.CallHook("OnLootEntityEnd", player, this);
	ResetRemovalTime();
	SetFlag(Flags.Open, b: false);
	SendNetworkUpdate();
}
csharp
public virtual void PlayerStoppedLooting(BasePlayer player)
{
	Interface.CallHook("OnLootEntityEnd", player, this);
	SetFlag(Flags.Open, b: false);
	SendNetworkUpdate();
}

Released under the MIT License.