Hallo leute !!!
Ich hab ein Problem wenn ich Gate Script einfüge dann geht das Gate rauf und Runter doch da bleibt immer ein Gate da !!!
Kann mir jemand sagen was ich falsch mache !!!
Lua
theGate = createObject(980, -2127.1000976563, -80.900001525879, 36.799999237061, 0, 0, 180) local downornot = false
function moveGate(player) x,y,z = getElementPosition(player) x1,y1,z1 = getElementPosition(theGate) if getDistanceBetweenPoints3D(x1,y1,z1,x,y,z) < 8 then if downornot == false then moveObject (theGate, 3000,-2127.1000976563, -80.900001525879, 31.10000038147,0,0,0) downornot = true else moveObject (theGate, 3000, -2127.1000976563, -80.900001525879, 36.799999237061,0,0,0) downornot = false end end end addCommandHandler("gate",moveGate)
Bitte helft mir !!!