Air units with continuous movement there any solution

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.
Post Reply
User avatar
Mistreated
Posts: 16
Joined: Tue Oct 23, 2012 4:32 pm

Air units with continuous movement there any solution

Post by Mistreated »

Sorry I'm New Here., Wanted to ask if there is some code in lua to make a move without detenerce unit, such as a plane at the time they created this STAY in motion., Another example would be like the planes in Empire Earth.
I noticed that in Boswars air units remain static, is there any way or Lua.
I expect an answer, and sorry if I write something wrong because I am occupying the google translator of English know nothing XD.
greetings bye.
User avatar
jarod42
Posts: 101
Joined: Fri Jan 20, 2012 7:43 pm

Re: Air units with continuous movement there any solution

Post by jarod42 »

There is no code in Lua to make unit in continuous movement.

But, the 'Still' Animation may have the plane fly in circle (in the same position) for example.
User avatar
Mistreated
Posts: 16
Joined: Tue Oct 23, 2012 4:32 pm

Re: Air units with continuous movement there any solution

Post by Mistreated »

jarod42 wrote:There is no code in Lua to make unit in continuous movement.

But, the 'Still' Animation may have the plane fly in circle (in the same position) for example.
Thanks for answering., Well I did some tests with "still" biendo the example of unit-Chooper, but only makes a rotary motion to the shaft, and there is not a circle or other code to enter than "rotate 1", if there are ways to make the aircraft move and circulate in a small circle would be great.
You have a code out there to see, because I only have the "still" of the unit-Chooper.
If not too much trouble could post how to move the aircraft by a circle.
greetings bye.
User avatar
jarod42
Posts: 101
Joined: Fri Jan 20, 2012 7:43 pm

Re: Air units with continuous movement there any solution

Post by jarod42 »

'rotate 1' change the direction on the plane (which is irrelevant here).

You have to change the graphics (and then change lua script) to have this rendering.

A way to do that is to have something like this in the image (need 8 frames):

.>. ..> ... ... ... ... ... ^..
... ... ..v ... ... ... ^.. ...
... ... ... ..v .<. <.. ... ...
User avatar
Mistreated
Posts: 16
Joined: Tue Oct 23, 2012 4:32 pm

Re: Air units with continuous movement there any solution

Post by Mistreated »

jarod42 wrote:'rotate 1' change the direction on the plane (which is irrelevant here).

You have to change the graphics (and then change lua script) to have this rendering.

A way to do that is to have something like this in the image (need 8 frames):

.>. ..> ... ... ... ... ... ^..
... ... ..v ... ... ... ^.. ...
... ... ... ..v .<. <.. ... ...
thanks for the info.
Post Reply