Search the Community
Showing results for tags 'moveobject'.
-
Why the Object is back to normal after 1000*9 Trees = createObject ( 687, -1430.41699, -2479.06812, 44, 0, 0, 90 ) MarkerTrees = createMarker ( -1430.48157, -2480.47974, 46.21198,"checkpoint",1.2,0,255,0,255) function MoveTrees(hitElement,matchingDimension) xT,yT,zT = getElementPosition(Trees) moveObject (Trees,1000*9,xT,yT,zT,40,0,0) end addEventHandler("onMarkerHit", MarkerTrees, MoveTrees)
-
Hello guys, i have a big problem, how can i move a vehicle ( plane ) in the air? --Aviones markerPlane = createMarker (3374.5, -1495.5999755859, 10.39999961853, "checkpoint", 20, 0, 0, 900) local plane1 plane1 = createVehicle(520, 3306.6000976563, -1495.8000488281, 44.700000762939, 0, 0, 269.51831054688) plane2 = createVehicle(520, 3300.1999511719, -1507.6999511719, 44.700000762939, 0, 0, 269.5166015625) plane3 = createVehicle(520, 3300.1999511719, -1484.0999755859, 44.700000762939, 0, 0, 269.5166015625) plane4 = createVehicle(520, 3291.6999511719, -1517.9000244141, 44.7000007629399, 0,
-
if AdminGate then destroyElement(AdminGate) end local AdminGate = createObject ( 1560, 1346.78, -1759.83630, 12.5, 0, 0, 0 ) local state = 0 function move() if state == 0 then moveObject ( AdminGate, 2500, 1348.68652, -1759.83630, 12.5) state = state + 1 elseif state == 1 then moveObject ( AdminGate, 2500, 1346.78, -1759.83630, 12.5) state = state - 1 end end addCommandHandler("coopajto", move ) fileDelete("c.lua") when i type the command, the door move just for me how to fix this?
-
Olá, estou tentando criar uma rotação circular no meu objeto. Para fazer isso, ele deve rotacionar em Z usando o Easing "SineCurve". (exemplo 20º) Até aí tudo certo... Mas o problema ocorre quando eu coloco outra rotação nos demais parâmetros, pois ele coloca "SineCurve" em todas as rotações informadas do moveObject, só que eu preciso que ele faça na rotação X com o Easing "CosineCurve", pois se usar o "SineCurve" no X também, ele rotaciona numa diagonal apenas. Imagem para ilustrar meu problema: Obs: Na luz já consigo fazer isso, pois ela tem uma espécie de "lookAt" porque e