Jump to content

how to: Make tanks react


Recommended Posts

I'm also dabbling with the editor on a basic level.

I have placed tanks in Army2 like I did infantry and they shoot and even drive forward a little for a better view, then return to their spawnpoint, kind of defending it. No trigger yet.

Have you added "backpacks" to tanks? They contain the ammo load and at first I left them off because I did not think tanks need "backpacks" and they wont shoot. Also give them crews. I forgot about that too in my first mission and cursed the editor redface.gif .

Link to comment
Share on other sites

Here are three examples from the mission.doc file:

</font><blockquote>code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">RunCommand ( UNIT , 123 , ATTACK , RECT , “Rect” )

// Unit 123 attacks the rectangular named Rect

RunCommand ( ARMY , 2 , STORM , UNIT , 15 )

// Army 2 assaults the unit with the identification number 15

RunCommand ( GROUP , “Group” , MOVE , ARRAY , arWaypoints )

// Group “Group” moves its units along the arWaypoints path

</pre>

Link to comment
Share on other sites

Well I've managed the basic movements. But found out I can't send a unit from one rec to another in sequence. He heads for the last location and ignores the first.

I suppose that's where arrays come in?

Also HT Attack was a good demo. Some readme notes in the code would be welcome but its pretty straight forward.

thanks

Link to comment
Share on other sites

×
×
  • Create New...