Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Units not patrolling!
Units not patrolling!
Apr 7 2015, 12:34 am
By: Zoan  

Apr 7 2015, 12:34 am Zoan Post #1

Math + Physics + StarCraft = Zoan

Hey, I'm running into a problem in my game.

I have a vHP system that spawns units in the following way:

1: It sets up a spawn area and a patrol location to which the spawned units are to be spawned at and ordered to patrol to, respectively

2: It detects if one of 120 small inverted locations is being used or not, starting from location 1 and going to location 120

3: When it finds one not in use, it moves that location to the spawn area and quits checking whether or not the other locations are in use

4: It then creates a zombie at a remote location for Player 8 (a computer ally)

5: It moves that zombie to the spawn area

6: It re-centers the small inverted location on the zombie owned by Player 8

7: It gives the zombie owned by Player 8 to Player 6 (a computer enemy)

8: It orders the zombie owned by Player 6 to patrol to the patrol location

And later on in the triggers I have a different set up of that moves a burrowed unit to each of the inverted locations in use and then moves it back, to slow down the zombies. It begins to run for the inverted locations immediately after (i.e. in the same trigger cycle and for every trigger cycle afterwards) the location becomes in use.

Anyway, the problem is that the zombies aren't patrolling when they spawn - they just sit there :(
And in other triggers, like when a car alarm goes off and orders all zombies in a large area around the car to patrol to it, they do move, so I know that they CAN patrol, it's just that they don't when they spawn.

Anyone know why?



\:rip\:ooooo\:wob\:ooooo \:angel\: ooooo\:wob\:ooooo\:rip\:

Apr 7 2015, 2:04 am zsnakezz Post #2



try putting a small wait before the patrol order. They triggers could be procking out of order.



I made the following maps; Hyperion 2, The Undead, The Undead Coop, Realm Rpg beta, and Overlords.

Apr 7 2015, 2:29 am Zoan Post #3

Math + Physics + StarCraft = Zoan

Fixed!

Quote from zsnakezz
try putting a small wait before the patrol order. They triggers could be procking out of order.

Yup, I think that's what was happening. I changed it such that it waits one trigger cycle before giving them to P6 and ordering them to patrol, and now it works perfectly.

Thanks man!



\:rip\:ooooo\:wob\:ooooo \:angel\: ooooo\:wob\:ooooo\:rip\:

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-4-29. : 2:00 am]
l)ark_ssj9kevin -- hi jamal
[2026-4-29. : 12:18 am]
Heinermann -- memes
[2026-4-28. : 10:08 pm]
NudeRaider -- skeet-skeet, motherfucker
[2026-4-28. : 4:24 pm]
Vrael -- NudeRaider
NudeRaider shouted: Vrael boy, if you're not careful I'll moderate your sorry ass too!
gotta catch me first! skeet skeet skeet
[2026-4-26. : 1:58 pm]
lil-Inferno -- ya
[2026-4-25. : 11:50 pm]
JamaL -- Glad to see SEN will never die. Kudos to whoever is paying the hosting fees these days!
[2026-4-25. : 3:37 pm]
NudeRaider -- (-.-,)
[2026-4-25. : 3:35 pm]
Zoan -- ;o I thought that was a monkey emote
[2026-4-25. : 3:34 pm]
Zoan -- :mods:
[2026-4-25. : 3:34 pm]
Zoan -- :mods"
Please log in to shout.


Members Online: Revenant, Andrea Rosa