Jump to content

[Help] Why isnt my gate working?


Recommended Posts

here is my lua code:

function createTheGate ()
 
 
 
              myGate = createObject ( MyObjectID, 2490.4057617188, 1055.2071533203,58.293659210205 )
 
 
 
end
 
 
 
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate )
 
 
 
 
 
 
 
 
 
 
 
function openMyGate ( )
 
 
 
moveObject ( myGate, 3000, 2490.1667480469, 1056.8166503906, 58.293659210205 )
 
 
 
setTimer ( movingMyGateBack, 5000, 1 )
 
 
 
end
 
 
 
addCommandHandler("openmodgate",openMyGate)
 
 
 
 
 
 
 
function movingMyGateBack ()
 
 
 
moveObject ( myGate, 3000, 2490.4140625, 1055.1296386719, 58.293659210205 )
 
 
 
end

what is wrong?

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...