• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[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:
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)
 
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.
Back
Top