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

help needed

Status
Not open for further replies.
Level 3
Joined
May 12, 2006
Messages
35
Hi,
I cant seem to fined out how to make it so
Event = unit withen range(x) of (unit type)
plz help
---------------------------------------
tring to do :
unit withing range (90) of (portal unit)

Unittype = MazeUnit

Move (triggering unit) to (position of spelltarget)

--------------------------------------
unit within range (90) of ( Right unit)

unittype = Patrol

unit change unit faceing ( Rightunits angle)
pick unit
loop
move unit ( rightunits angle) 1,1 or w/e
----------------------------------------
stuff like that
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
make your second trigger have no events, and at the start of the game, make a trigger that does this

Custom Script: set bj_wantDestroyGroup = true
(cleans up leaks)
Unit Group - Pick Every Unit in Units of Type Portal and do Actions
Loop - Actions
Add an event for (the other trigger) Unit - A Unit Comes within 90 of Picked Unit.
 
Status
Not open for further replies.
Top