Ich habe ein Tor in SF gescripten das sich nicht öffnet warum?
gate= createObject ( 971, -2239.2023925781, 1019.1547241211, 86.262626647949, 0, 0, 270 )
gatecol = createColCircle ( -2239.7495117188, 1019.910949707, 83.630805969238 )
function opengate(thePlayer)
if getElementModel( thePlayer ) == 123 then
moveObject (gate, 5000, -2239.2023925781, 1010.4013061523, 86.262626647949 )
end
end
addEventHandler( "onColShapeHit",gatecol, opengate )
function closegate(thePlayer)
if getElementModel( thePlayer ) == 123 then
moveObject (gate, 5000,-2239.2023925781, 1019.1547241211, 86.262626647949 )
end
end
addEventHandler( "onColShapeLeave", gatecol, closegate )