• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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