HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Production stop

08-18-2004, 12:35 PM#1
Recca
I have a trigger problem. When player red trains a unit at a building, it should stop producing but I just can't find the 'stop production' or 'stop train unit' trigger, I tried it with 'set training/construction availability of unit' and made the unit unavailable for the player but it didn't stop the production.

Help is greatly appreciated
08-18-2004, 02:13 PM#2
Wolf Boy
Easy trigger:
Code:
Events-A Unit finishes training a unit
Condition- Unit equal to Your building
Events- Pause Your Building (or stop unit)
wait 1 second
Unpause Your Building 
08-18-2004, 02:33 PM#3
Recca
Quote:
Events-A Unit finishes training a unit
Condition- Unit equal to Your building
Events- Pause Your Building (or stop unit)
wait 1 second
Unpause Your Building

Nope, that doesn't work and the event is wrong, it should look like this

Code:
Events - A Unit begins training a unit
Condition - Unit equal to my building
Actions - ??

So now i'm searching for an action that stops training the unit that gets trained at that moment. The pause/unpause trigger didn't work :(
08-18-2004, 02:35 PM#4
Eeporgorg
Well, you could destroy that building and create a new one of the exact same type in the same location.
08-18-2004, 02:44 PM#5
Recca
Quote:
Well, you could destroy that building and create a new one of the exact same type in the same location.


...






no.

-_-




that wasn't the solution I wanted. And it's also too difficult since the same building that produces the units, also has a hero loaded, so when I would destroy the building, the hero in it would die or would get thrown out.
08-18-2004, 02:47 PM#6
Eeporgorg
It was just a suggestion :**

You didn't really explain your situation in too much detail.
08-19-2004, 12:08 PM#7
Recca
Ya I know.
This:

Quote:
...






no.

-_-

wasn't really serious, anyway if someone has a solution for my problem I would gladly hear it!