Skip to content

OnEntityDismounted

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnEntityDismounted( BaseMountable instance, BasePlayer player )
{
    Puts( "OnEntityDismounted works!" );
}

Location

  • BaseMountable::DismountPlayer(BasePlayer player, bool lite)
  • BaseMountable::DismountPlayer(BasePlayer player, bool lite)
csharp
//---
	{
		player.ClientRPC<Vector3>(RpcTarget.Player("ForcePositionTo", player), position);
	}
	Facepunch.Rust.Analytics.Azure.OnDismountEntity(player, this, baseVehicle);
	this.OnPlayerDismounted(player);
	Interface.CallHook("OnEntityDismounted", this, player);
}
csharp
//---
		if (baseVehicle != null)
		{
			baseVehicle.PlayerDismounted(player, this);
		}
		this.OnPlayerDismounted(player);
		Interface.CallHook("OnEntityDismounted", this, player);
		return;
	}
	Vector3 position;
	if (!this.GetDismountPosition(player, out position) || base.Distance(position) > 10f)
	{
//---

Released under the MIT License.