function OnScriptLoaded(level, obj)
  game.SubObject.Sleep(obj)
  game.SubObject.SetForgetOnCheckpoint(obj)
end
local shipEmitterRef
function ShipPassiveSpawned(level, obj, passive)
  if passive ~= nil then
    SetEmitterRef(passive)
  end
end
function SetEmitterRef(shipReference)
  shipEmitterRef = shipReference:FindSingleSoundEmitterByName("SNDHelheimShipVelocityEmitter")
end
function GetShipVelocityForRTPC()
  if shipEmitterRef ~= nil then
    return shipEmitterRef:GetVelocity() * 10 or 0
  else
    return 0
  end
end
