OnPlayerDismountFailed
Usage
- No return behavior
Example Autogenerated
csharp
private void OnPlayerDismountFailed( BasePlayer player, BaseMountable instance )
{
Puts( "OnPlayerDismountFailed works!" );
}
Location
- BaseMountable::RPC_WantsDismount(BaseEntity/RPCMessage msg)
csharp
//---
public void RPC_WantsDismount(BaseEntity.RPCMessage msg)
{
BasePlayer player = msg.player;
if (!this.HasValidDismountPosition(player))
{
Interface.CallHook("OnPlayerDismountFailed", player, this);
return;
}
if (Interface.CallHook("OnPlayerWantsDismount", player, this) != null)
{
return;
//---