Hallo habe mir mal schnell ein tor gemacht ingame geht es bloß nicht und brauche hilfen ich hoffe jemand findet das Problem Code kann veraltet sein
lua:
Lua
theGate = createObject(969,98.800003051758,-2431.8999023438,34.299999237061,0,0,270) 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, 969,98.800003051758,-2431.8999023438,34.299999237061,0,0,270) --------- HIER!!
downornot = true
else
moveObject (theGate, 969,99,-2431.8999023438,34.299999237061,0,0,90) -- UND HIER DIE KOORDINATEN WO DAS TOR AUF GEHT!!
downornot = false
end
end
end
addCommandHandler("mv",moveGate)
Alles anzeigen
meta:
Ich hoffe mir kann jemand helfen
MFG
Azteke