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