Skip to content

OnEntityMounted

Usage

  • No return behavior

Example Autogenerated

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

Location

  • BaseMountable::MountPlayer(BasePlayer player)
csharp
//---
	player.OverrideViewAngles(transform.rotation.eulerAngles);
	this._mounted.eyes.NetworkUpdate(transform.rotation);
	player.SendNetworkUpdateImmediate(false);
	Facepunch.Rust.Analytics.Azure.OnMountEntity(player, this, this.VehicleParent());
	this.OnPlayerMounted();
	Interface.CallHook("OnEntityMounted", this, player);
	if (this.IsValid() && player.IsValid())
	{
		player.ProcessMissionEvent(BaseMission.MissionEventType.MOUNT_ENTITY, this.net.ID, 1f);
	}
}

Released under the MIT License.