When exiting the seat after reaching cruising speeds on autopilot, don't automatically open doors and ramps (since we are flying through space).
-- Open door and extend ramp if available
if door and vec3(core.getVelocity()):len() < 2.7 then
for _,v in pairs(door) do
v.activate()
end
end
if forcefield and vec3(core.getVelocity()):len() < 2.7 then
for _,v in pairs(forcefield) do
v.activate()
end
end
-- Open door and extend ramp if available
if door then
for _,v in pairs(door) do
v.activate()
end
end
if forcefield then
for _,v in pairs(forcefield) do
v.activate()
end
end