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

[Solved] Free Roam Trigger

Status
Not open for further replies.
Level 14
Joined
Nov 17, 2010
Messages
1,266
I would just run a periodic trigger that has it attack/move to a random point on the map.

basically:
every 30 seconds
Set MovePoint to random point in playable map area
Issue order for your unit to Attack/Move to MovePoint

remember to remove the point leak too
call RemoveLocation(udg_MovePoint)
 
Level 14
Joined
Nov 17, 2010
Messages
1,266
I see. If I were on my computer maybe I could right something up, but right now I’m just using my phone. Is it only for a certain type of unit or a certain player or is it just a random assortment of units that need to be moved around?
 
Level 15
Joined
Jul 9, 2008
Messages
1,552
so i assume something like this will work for you??

  • roam
    • Events
      • Time - Every 30.00 seconds of game time
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Owner of (Matching unit)) Equal to YOUR PLAYER and ((Unit-type of (Matching unit)) Equal to YOUR UNIT))) and do (Actions)
        • Loop - Actions
          • Set VariableSet Temp_Point = (Random point in (Playable map area))
          • Unit - Order (Picked unit) to Attack-Move To Temp_Point
          • Custom script: call RemoveLocation( udg_Temp_Point )
 
Status
Not open for further replies.
Top