Skip to content

CanLootPlayer

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

  • BasePlayer::CanBeLooted(BasePlayer player)
csharp
public override bool CanBeLooted(BasePlayer player)
{
	object returnvar = Interface.CallHook("CanLootPlayer", this, player);
	if (returnvar is bool)
	{
		return (bool)returnvar;
	}
	return !(player == this) && ((this.IsWounded() || this.IsSleeping() || this.CurrentGestureIsSurrendering || this.IsRestrainedOrSurrendering) && !this.IsLoadingAfterTransfer()) && !base.IsTransferring();
//---

Released under the MIT License.