Staredit Network > Forums > SC2 Assistance > Topic: Tethering units without Arm Magazine
Tethering units without Arm Magazine
Mar 18 2013, 6:02 am
By: DevliN  

Mar 18 2013, 6:02 am DevliN Post #1

OVERWATCH STATUS GO

I'm sure there has to be an easy solution to this, but my head is fried and I can't seem to figure it out. I have an ability that creates units around the caster. The created units are not selectable (because I'm not allowing players to deselect their heroes) and ideally they should attack enemies near the caster. It would be great if they attacked the caster's targets specifically, but I don't care as much about that just yet. Each created unit has timed life. The main issue I'm having is that I want them to follow the caster when he moves away, or switch to rally back to the caster if they get too far away from him.

In theory I imagine I could use Arm Magazine to create them rather than the Create Unit effect, but I'm under the impression that using that requires a weapon to be linked to it which I can't do for this map.

I also thought that I could make a simple trigger that forces the created units to move back to the caster when they are outside a region that is attached to him, but in order to do that I'd need them to have variables attached to them via triggers to then manage their whereabouts. Unless I'm thinking too hard about it and there is an easier way, of course. :lol:



\:devlin\: Currently Working On: \:devlin\:
My Overwatch addiction.

Mar 18 2013, 3:56 pm Wing Zero Post #2

Magic box god; Suck it Corbo

You just described almost exactly what Blizz did in the HotS campaign. Is that where you got the idea from? If not then looking at HotS mission 2(?) might help.




Mar 18 2013, 4:02 pm Biophysicist Post #3



If it's for a hero, the obvious solution is this:
-Have a Search Area effect that calls an Issue Order to make the caster move to the closest hero;
-Have an Enumerate Area validator that prevents that effect from going off if a hero is nearby;
-Have a behavior on the spawned units that calls the Search Area periodically.



None.

Mar 18 2013, 4:07 pm TF- Post #4

🤙🏾

I wonder if 'herd' behaviors can help with this, it would be real simple if they did.



🤙🏾

Mar 18 2013, 7:17 pm DevliN Post #5

OVERWATCH STATUS GO

Quote from Wing Zero
You just described almost exactly what Blizz did in the HotS campaign. Is that where you got the idea from? If not then looking at HotS mission 2(?) might help.
Which part are you talking about in the campaign? I only remember units using the Arm Magazine method, which I can't do. As far as the idea goes, this is for my Invasion map I started in 2010 so I didn't get it from HotS. :P If anything I'm stealing from my SC1 map, Demonic.

Quote from Biophysicist
If it's for a hero, the obvious solution is this:
-Have a Search Area effect that calls an Issue Order to make the caster move to the closest hero;
-Have an Enumerate Area validator that prevents that effect from going off if a hero is nearby;
-Have a behavior on the spawned units that calls the Search Area periodically.
There are 6 heroes on the map most likely fighting near each other. How would I have them target the specific hero that created them?

EDIT:
I ended up doing it with a trigger, though I'm still curious if there would be a better way with just data (i.e. Issue Order). This trigger doesn't always catch them and most of the time they are moving to try to catch up. Maybe there's something I'm not seeing in the Issue Order effect, but I still can't figure out how I'd make it target the point where that hero is specifically.

Basically I put a dummy behavior on the units and whenever they left a certain distance from the hero, they move back to the point where the hero is. I'm so glad I didn't try to trigger that last night. I was thinking waaaaaaay too hard on this.

Post has been edited 2 time(s), last time on Mar 18 2013, 7:45 pm by DevliN.



\:devlin\: Currently Working On: \:devlin\:
My Overwatch addiction.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
Please log in to shout.


Members Online: Roy