Hi, i made a move object script with OMG(object movement generator) and i created a file.lua and put the name in meta.xml but in the game the object doesn't exist!(and not move)
i wrote /debugscript 3
script:
function omg_plat1()
plat1 = createObject(3095, 3052.1999511719, -973.59997558594, 1.6000000238419, 0, 0, 0)
plat1Attach1 = createObject(3498, 3044, -973.40002441406, 1.5, 0, 90, 0)
attachElements(plat1Attach1, plat1, -8.1999511719, 0.1999511718775, -0.1000000238419, 0, 90, 0)
plat1Attach2 = createObject(3095, 3056.1999511719, -973.59997558594, -2.4000000953674, 0, 90, 0)
attachElements(plat1Attach2, plat1, 3.999999999975, 2.5011104298756e-012, -4.0000001192093, 0, 90, 0)
plat1Attach3 = createObject(3095, 3052.1999511719, -977.59997558594, -2.4000000953674, 90, 0, 0)
attachElements(plat1Attach3, plat1, -2.5011104298756e-011, -3.9999999999975, -4.0000001192093, 90, 0, 0)
plat1Attach4 = createObject(3095, 3052.1999511719, -969.59997558594, -2.4000000953674, 270, 0, 0)
attachElements(plat1Attach4, plat1, -2.5011104298756e-011, 4.0000000000025, -4.0000001192093, -90, 0, 0)
omgMoveplat1(1)
end
outputChatBox("#FF3300Se inicio el moveObject", 255, 255, 255, true)
function omgMoveplat1(point)
if point == 1 then
moveObject(plat1, 3000, 3052.2001953125, -945.40002441406, 1.6000000238419, 0, 0, 0)
setTimer(omgMoveplat1, 3000+500, 1, 2)
elseif point == 2 then
moveObject(plat1, 3000, 3052.1999511719, -973.59997558594, 1.6000000238419, 0, 0, 0)
setTimer(omgMoveplat1, 3000+500, 1, 1)
end
end
addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), omg_plat1)