Hello,
I tried creating an object that moves repeatedly apparently when I debug it and compile it on the test server the elevator does not move. It just stays frozen.
My script
local elevator = createObject ( 971, 3226.3999023438, -2897.3999023438, 15.60000038147, 89.249816894531, 180, 231.75024414063 )
i=0
function ()
while i!=-1 do
moveObject(elevator, 10000, 3226.3999023438, -2897.3999023438, 29.60000038147, 89.249816894531, 180, 231.75024414063 )
setTimer (moveObject, 10000, 1, elevator, 1000, 3226.3999023438, -2897.3999023438, 15.60000038147 )
end
end
P.S Was not sure for the while i integer. In Java it would work. My point was to loop the script until the map stops
Please let me know If I did something wrong with placing coordinates or something other
Here are original unedited coordinates
Elevator Down:
Elevator Up:
Thanks!