| 07-30-2004, 12:13 PM | #1 |
to call a trigger when any unit owned by player2 is low on health (let's say 25%) ?? I'm talking events here looks like I have to define a specific unit for the "Unit - Life" event. But I don't have specific units... how do I go about this? Can I maybe create a variable and put all units by player two in it? or do I have to call this periodically again... |
| 07-30-2004, 02:05 PM | #2 |
No, there isnt. Instead you would have to detect when a unit takes damage, and then check the HP of the unit to see if its below a certain percentage. At least that's what I think you have to do. |
| 07-30-2004, 04:12 PM | #3 |
The Unit Takes Damage event is used only for specific units. If you will manage to put all the units owned by player 2 in a veraible then use this action Trigger - Add to (This trigger) the event (Unit - <veriable>Unit Dies) - This will add an event to the trigger and allow you to use veriables in specific unit events. |
