Kurz und Knapp : Tor erscheind nicht, und die function auch nicht.
Alle anderen gates funktionieren blos das nicht. Keine Error und garnichts.
Lua
local adminb = createObject(980,-2002.0999755859,-859.90002441406,33.900001525879,0,0,90) -- Tor erstellt
torstatus = 'zu'
function opentor ( player )
if torstatus == 'zu' then
moveObject (adminb , 1000, -2002.0999755859,-859.90002441406,27.900001525879) -- Tor auf
torstatus = 'auf'
outputChatBox ("Gate is open!", player , 0, 255 , 0 , true)
else
moveObject (adminb, 1000, -2002.0999755859,-859.90002441406,33.900001525879) -- Tor zu
torstatus = 'zu'
outputChatBox("Gate is closed!", player , 255 , 0 , 0 , true)
end
end
addCommandHandler('test1', opentor)
Alles anzeigen