Ok, also es liegt an dem 2 Script, was in der Resource ist. (2 lua datei)
2 lua datei.
Die ist für eine Hangar tür mit Helipads.
local heligate = createObject(8378,1360.400390625,1134.7998046875,19.5,0,0,271.49963378906)
local heli1 = createObject(3115,1305.400390625,1155.900390625,10.699999809265,0,0,0)
local heli2 = createObject(3115,1332,1155.900390625,10.699999809265,0,0,0)
local heli3 = createObject(3115,1325.7998046875,1135.5,10.699999809265,0,0,0)
local heli4 = createObject(3115,1344.400390625,1115.2001953125,10.699999809265,0,0,0)
local gateopened = false
local heliopened = false
function openg ()
if gateopened == false then
moveObject(heligate,3000,1360.400390625,1134.7998046875,-5,0,0,0)
gateopened = true
setTimer(heliog,3300,1)
end
end
addCommandHandler("heliopen",openg)
function heliog ()
if heliopened == false then
moveObject(heli1,5000,1382.3000488281,1155.900390625,10.699999809265,0,0,0)
moveObject(heli2,5000,1412.0999755859,1155.900390625,10.699999809265,0,0,0)
moveObject(heli3,5000,1392,1135.5,10.699999809265,0,0,0)
moveObject(heli4,5000,1385.6999511719,1115.2001953125,10.699999809265,0,0,0)
heliopened = true
end
end
function closeg ()
if gateopened == true then
moveObject(heli1,7000,1305.400390625,1155.900390625,10.699999809265,0,0,0)
moveObject(heli2,7000,1332,1155.900390625,10.699999809265,0,0,0)
moveObject(heli3,6500,1325.7998046875,1135.5,10.699999809265,0,0,0)
moveObject(heli4,5000,1344.400390625,1115.2001953125,10.699999809265,0,0,0)
gateopened = false
setTimer(helicg,5500,1)
end
end
addCommandHandler("heliclose",closeg)
function helicg ()
if heliopened == true then
moveObject(heligate,3000,1360.400390625,1134.7998046875,19.5,0,0,0)
heliopened = false
end
end
Alles anzeigen