So.. Ich habe es jetzt mal ausprobiert...
Das ganze erst einmal mit tor 2.
function tor2(thePlayer,command,tor,zustand)
if(tor==2) then
if(zustand=="auf") then
moveObject(zaun15, 987, -2740.5, 368.10000610352, -3)
moveObject(zaun16, 987, -2740.5, 368.10000610352, -3)
moveObject(zaun17, 987, -2740.5, 368.10000610352, -3)
outputChatBox("Das Tor wird nun geöffnet",thePlayer,0,255,0)
elseif(zustand=="zu") then
moveObject(zaun15, 987, -2740.5, 368.10000610352, 3.4000000953674)
moveObject(zaun16, 987, -2740.5, 368.10000610352, 3.4000000953674)
moveObject(zaun17, 987, -2740.5, 368.10000610352, 3.4000000953674)
outputChatBox("Das Tor wird nun geschlossen",thePlayer,0,255,0)
else
outputChatBox("Es gab einen Error",thePlayer,255,0,0)
outputChatBox("Das Tor konnte sich nicht bewegen",thePlayer,255,0,0)
end
end
end
addCommandHandler("tor",tor2)
Alles anzeigen
Es kommen keine Errors, jedoch tut sich auch nichts.
Kann jemand mit helfen?