Hallo Leute,
ich Habe Versucht Ein Tor zu erstellen das man öffnen/schließen Kann
Es Geht Aber Nicht Immer Kommt In Der Console : ERROR : Coul't find file for recource Police_tor /
Loading of recource 'Police_tor' failed
Lua
Gate = createObject ( 971, 1547 , -1627.599609375, 16, 0, 0,270)
GateStatus = "zu"
function MoveGate (player)
local x, y, z = getElementPosition(player)
if (getDistanceBetweenPoints3D(1547, -1627.599609375, 16, x, y,z)) < 15 then
if (GateStatus == "zu") then
moveObject( Gate, 3000, 1547 , -1627.599609375, 8.3000001907349, 0, 0,270)
GateStatus = "auf"
elseif (GateStatus == "auf") then
moveObject( Gate, 3000, 1547 , -1627.599609375, 16, 0, 0,270)
GateStatus = "zu"
end
else
outputChatBox("Du Bist zu weit entfernt", player,255, 0,0)
end
end
addCommandHandler("ptor", MoveGate)
Alles anzeigen
ich Fürde Micht Sehr Feuen Wenn Mir Jemand Hilft
LG Mrobelix333