CanDismountEntity
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private object CanDismountEntity( BasePlayer player, BaseMountable instance )
{
Puts( "CanDismountEntity works!" );
return null;
}Location
- BaseMountable::DismountPlayer(BasePlayer player, bool lite)
csharp
public void DismountPlayer(BasePlayer player, bool lite = false)
{
if (_mounted == null || _mounted != player || Interface.CallHook("CanDismountEntity", player, this) != null)
{
return;
}
if (!ShouldRepositionPerFrame())
{
//---