Der Titel sagt alles,
Öffnen tut sie sich.
In der Konsole gibt es keine Errors.
Hier einmal der Code:
Lua
local gate1 = createObject(2920,1393.5,1183.599609375,10.800000190735,90,180,90)
local gate2 = createObject(2920,1381.7001953125,1183.599609375,10.800000190735,90,180,270)
local gateopen = false
function openg()
if gateopen == false then
moveObject(gate1,2500,1393.5,1183.599609375,10.800000190735,90,0,0)
moveObject(gate2,2500,1381.7001953125,1183.599609375,10.800000190735,90,0,0)
gateopen = true
setTimer(closeg,8000,1)
end
end
addCommandHandler("opengate", openg)
function closeg()
if gateopen == true then
moveObject(gate1,2500,1393.5,1183.599609375,10.800000190735,-90,0,0)
moveObject(gate2,2500,1381.7001953125,1183.599609375,10.800000190735,-90,0,0)
gateopen = false
end
end
Alles anzeigen
Danke im Vorraus