• 🏆 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!

[Solved] Free Roam Trigger

Status
Not open for further replies.
Level 14
Joined
Nov 17, 2010
Messages
1,265
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,265
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