CanBeSplashed
Usage
- Return a bool value to override default behavior
Example Autogenerated
csharp
private bool? CanBeSplashed( BasePlayer instance, ItemDefinition splashType, int amount )
{
Puts( "CanBeSplashed works!" );
return null;
}Location
- BasePlayer::WantsSplash(ItemDefinition splashType, int amount)
csharp
public bool WantsSplash(ItemDefinition splashType, int amount)
{
object obj = Interface.CallHook("CanBeSplashed", this, splashType, amount);
if (obj is bool)
{
return (bool)obj;
}
if (IsSleeping())
//---