GE Lua Documentation

Press F to search!

boostBackwards

Definition


-- @/lua/ge/extensions/core/funstuff.lua:50

local function boostBackwards()
  local veh = getPlayerVehicle(0)
  if veh then
    local dir = veh:getDirectionVector()
    dir:normalize()
    dir = dir * - 25
    veh:applyClusterVelocityScaleAdd(veh:getRefNodeId(), 1, dir.x, dir.y, dir.z)
  end
  return {"hide"}
end

Callers