OnPlayerWantsDismount
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnPlayerWantsDismount( BasePlayer player, BaseMountable instance )
{
Puts( "OnPlayerWantsDismount works!" );
}
Location
- BaseMountable::RPC_WantsDismount(BaseEntity/RPCMessage msg)
csharp
//---
BasePlayer player = msg.player;
if (!this.HasValidDismountPosition(player))
{
return;
}
if (Interface.CallHook("OnPlayerWantsDismount", player, this) != null)
{
return;
}
if (player != null && player.IsRestrained)
{
//---