Skip to content

CanLootPlayer

Usage

  • Return a bool value to override default behavior

Example Autogenerated

csharp
private bool? CanLootPlayer( BasePlayer instance, BasePlayer player )
{
    Puts( "CanLootPlayer works!" );
    return null;
}

Location

  • BasePlayer::CanBeLooted(BasePlayer player)
csharp
public override bool CanBeLooted(BasePlayer player)
{
	object obj = Interface.CallHook("CanLootPlayer", this, player);
	if (obj is bool)
	{
		return (bool)obj;
	}
	if (player == this)
//---

Released under the MIT License.