Hi
I have a code and it works from (Object Movement Generator) - server side
function omg_movement()
omg5036 = createObject(8838, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 90)
omgMoveomg5036(1)
omg9139 = createObject(8838, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 0)
omgMoveomg9139(1)
end
function omgMoveomg5036(point)
moveObject(omg5036, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100)
setTimer(moveObject, 5000, 0, omg5036, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100)
end
function omgMoveomg9139(point)
moveObject(omg9139, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100)
setTimer(moveObject, 5000, 0, omg9139, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100)
end
But I need to start it after counting down on the server. (after map loading)
function omg_movement()
omg5036 = createObject(8838, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 90)
omgMoveomg5036(1)
omg9139 = createObject(8838, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 0)
omgMoveomg9139(1)
end
function omgMoveomg5036(point)
moveObject(omg5036, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100)
setTimer(moveObject, 5000, 0, omg5036, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100)
end
function omgMoveomg9139(point)
moveObject(omg9139, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100)
setTimer(moveObject, 5000, 0, omg9139, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100)
end
addEvent("onRaceStateChanging",true)
addEventHandler("onRaceStateChanging",root,
function (new)
if (new == "Running") then
startomg_movement()
end
end)
I've added some lines but it's still doesn't works. I'm newbie in scripting. Could you help guys ?