GE Lua Documentation

Press F to search!

replaySpawnVehicle

Definition


-- @/lua/ge/main.lua:794

-- only the vehicle and config are necessary here (the rest of parameters will be set during regular playback anyway, no point duplicating them here too)
function replaySpawnVehicle(jbeamFilename, partConfigData)
  local veh = spawn.spawnVehicle(jbeamFilename, partConfigData, vec3(), quat(), nil, nil, nil)
  if be:getEnterableObjectCount() == 1 then
    commands.setGameCamera()
  end
  return veh
end

Callers