• 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.

How to set up a mine that will explode from enemy contact

Status
Not open for further replies.
Level 7
Joined
Oct 8, 2008
Messages
200
So far I can create mines but I can't figure out how to set up a trigger for them explode on contact also I can't figure out how to make them hide as well without them doing it manually in game

Trigger so far is:
Unit - A unit Starts the effect of an ability
(Ability being cast) Equal to Mine
(Unit-type of (Triggering unit)) Equal to Swordsman
Set Bird2 = (Position of (Triggering unit))
Unit - Create (Random integer number between 5 and 10) Mine for Player 1 (Red) at Bird2 facing (1.00 + 1.00) degrees
 
Level 12
Joined
Aug 22, 2008
Messages
911
Change the trigger, you should try, to:

Event:
-Unit - A unit gets in range (WhatEverYouWant) of unit
Condition:
-(Unit-type of (Triggering Unit)) = Footman
Actions:
-Unit - Make unit cast (Mine)

I think the mine ablility by itself will detonate.
That would not be a smart trigger if you have LOTS of mines.
And as for hiding the mine, try adding to it the ability (Permanent Invisibility).

May the force be with you!
 
Last edited:
Level 7
Joined
Oct 8, 2008
Messages
200
Thank you but do you know how so when I cast my spell my mines are more seperated instead of bunch up together
 
Status
Not open for further replies.
Top