HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

A tiny trigger question

08-13-2005, 04:24 PM#1
Kabel
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
Thunder_Eye
peace a cake :)

Quote:
Untitled Trigger 001
Events
Unit - A unit Dies
Conditions
((Dying unit) is A structure) Equal to False
Actions
Item - Create Bundle of Lumber at (Position of (Dying unit))
08-13-2005, 05:24 PM#3
vile
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
oNdizZ
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
Kabel
Thunder_Eyes description of the trigger worked out well for me. But thanks for all help!