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

[Trigger] add Locust to unit and make unit act like Locust

Status
Not open for further replies.
Level 4
Joined
Oct 6, 2009
Messages
85
hi guys so i need help cause i created an ability that removes the locust ability into a specific unit in the map and after a few seconds i add back the locust ability to the unit but when i add the ability again the unit does not act like a locust anymore (i mean the locust unit which roams around and attack enemy units) so thats it i want to add the locust ability and making the unit go roam around and attack again is this possible?
 
Last edited:
Level 4
Joined
Oct 6, 2009
Messages
85
ok thanks for the reply. i just noticed your 10,000th post is in my thread XD
 
Level 13
Joined
Jul 16, 2012
Messages
679
You can move Unit like a locust
TempTrigger
  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set TempPoint = (Center of (Playable map area))
      • Set TempPoint2 = (Random point in (Playable map area))
      • Unit - Create 1 Footman for Player 1 (Red) at TempPoint facing Default building facing degrees
      • Set TempUnit = (Last created unit)
      • Unit - Order TempUnit to Move To TempPoint2
      • Custom script: call UnitAddAbilityBJ( 'Aloc', udg_TempUnit )
      • Custom script: call RemoveLocation( udg_TempPoint)
      • Custom script: call RemoveLocation( udg_TempPoint2)
 

Wrda

Spell Reviewer
Level 28
Joined
Nov 18, 2012
Messages
1,994
You can only pick units with locust with "pick every units owned by player x", "pick every units of unit type" and "...issue order" if I'm right. "A unit enters region" fires too if a unit with locust goes by. Some people say that "Unit - A unit comes within 256.00 of UnitWithLocust" doesn't work, which is wrong, because it worked for me.
 
Status
Not open for further replies.
Top