HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Triggered Land Mines

12-30-2004, 12:48 PM#1
Voi
Hey...I have a trigger that adds land mines...And when a unit comes within range of that land mine, the unit and the land mine should die.
I use Trigger - Add event to make the event when the land mine dies. The problem is that I want the mine to die too and I can't have Event response - Unit Being Came in range or something like that. What should I do? I don't want a periodic.

I have thought about something like this:
Code:
Trigger - Add trigger and name it "InRangeTrigger" + String(integervariable)
Trigger - Add event: a unit comes in range withing last created unit to Last Created Trigger.
Trigger - Add action: kill last created unit to Last Created trigger.

Is there any JASS script for adding a trigger or is there any other way?
12-30-2004, 06:38 PM#2
Vexorian
you could just give the unit a custom version of the 'Land mine ability'
01-01-2005, 01:40 PM#3
Guest
call CreateTrigger()