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.
[08:46 pm]
NudeRaider -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
https://armoha.github.io/eud-book/
[08:36 am]
Brusilov -- Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
[2024-5-09. : 11:31 pm]
Vrael -- :wob:
[2024-5-09. : 8:42 pm]
Ultraviolet -- :wob:
[2024-5-08. : 10:09 pm]
Ultraviolet -- let's fucking go on a madmen rage bruh
[2024-5-08. : 10:01 pm]
Vrael -- Alright fucks its time for cake and violence
[2024-5-07. : 7:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
Please log in to shout.


Members Online: 1carolinee382rN0, 5miac293yc4