• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Is it possible to create a mine?

Status
Not open for further replies.
Level 7
Joined
Jun 28, 2013
Messages
395
Yes it's possible XD

Just create a random dummy unit. Then cr8 a trigger with an event "Unit comes Within <Real> of <dummy unit>"

Then in the action is where you put the code that damage the unit. :)
 
Level 11
Joined
Oct 11, 2012
Messages
711
Yes it's possible XD

Just create a random dummy unit. Then cr8 a trigger with an event "Unit comes Within <Real> of <dummy unit>"

Then in the action is where you put the code that damage the unit. :)

Why not use the standard goblin land mine?

Thanks for both of you. +Rep if I can.

Edit:
where can I find goblin land mine? Is it a unit or an item? xD
 
You can also trigger some stuff when exploding a land mine ..
just make trigger ..

[trigger=]Land Mines
Events
Unit - A unit dies
Conditions
(Unit type of dying unit) Equal to Goblin Land Mine
Actions
Set Point = (Position of (Dying unit))
Set Group = (Units within 350 of Point matching ((Matching unit is alive) and ((Matching unit) belongs to enemy of (Dying unit))
Unit Group - Pick every unit in Group and do (Actions)
Loop - Actions
Set PickPoint = (Position of (Picked unit))
Unit - Create 1 Dummy for (Owner of (Dying unit)) at PickPoint facing Default building facing degrees
Unit - Add Firebolt to (Last created unit)
Unit - Order (Last created unit) to Neutral - Firebolt - (Picked unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation (udg_PickPoint)
Custom script: call DestroyGroup (udg_Group)
Custom script: call RemoveLocation (udg_Point)
[/trigger]
 
Level 7
Joined
Jun 28, 2013
Messages
395
^ That's nice XD Never thought about it. The goblin land mine that appear when using the item is an unit? @_@
 
Status
Not open for further replies.
Top