| 08-13-2005, 04:24 PM | #1 |
Hello. I have a tiny question for my tiny custom map I am making. I have a trigger that when a unit anywhere on the map dies, it drops an item worth 1 lumber. But I don't want that item to drop when a building dies. How can I make so only units and Heroes drop those items when they die and not buildings? Thanks. |
| 08-13-2005, 04:31 PM | #2 | |
peace a cake :) Quote:
|
| 08-13-2005, 05:24 PM | #3 |
If I recall correctly, Position of Dying unit won't work. Try setting the position temporarily, then use it, then remove it by using RemoveLocation(udg_yourlocation) |
| 08-13-2005, 08:19 PM | #4 |
thunder_eye's action would leak yes, but it would still work. if Item - Create Bundle of Lumber at (Position of (Dying unit)) didnt work, then it wouldnt work on set tempPoint = (Position of (Dying unit)) Item - Create Bundle of Lumber at (tempPoint) Custom Script: call RemoveLocation(udg_tempPoint) aswell. |
| 08-14-2005, 03:01 PM | #5 |
Thunder_Eyes description of the trigger worked out well for me. But thanks for all help! |
