barneyjason14
WI Forum Novice
Joined: 11 Dec 2004 Posts: 9 Location: Dallas, TX
|
Posted: Sat Dec 11, 2004 4:39 pm Post subject: Can an enemy rebuild buildings? |
I have two threads concerning how to get an enemy to build structures, but one of the techniques does not work, and the other in unclear.
I have a series of towers defending an entrance that I want the enemy to automatically rebuild if they are destroyed and there are adequate credits. I know that I have seen this in a mission or two.
How is this accomplished with the current version of the editor?
Thanks in advance.
|
PhillipEarl
Mega-Poster

Joined: 12 Jan 2004 Posts: 329 Location: Charlotte, NC
|
Posted: Sun Dec 12, 2004 8:28 am |
Turn repairing on for your side. Under your mission loaded trigger you should have an action to set repair on for the computer. The computer will rebuild the towers, but not the buildings, which it will merely try to repair.
If you want the computer to rebuild the other buildings, then you'll have to do the following:
Place each building you want built in its own area. Then write the following trigger for each building/area combo:
Conditions:
[Area] contains exactly 0 [Building]
Actions:
Wait 6 seconds
Build [Building] at [Area] with 100 percent health
Preserve Trigger
Where [Building] and [Area] appear above, insert the names of each building you want rebuilt and its corresponding area.
You can see this in action in the "Hell's Pass" mission pack. (shameless plug, there)
|