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 king

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.
[03:17 pm]
Pr0nogo -- u
[02:35 pm]
lil-Inferno -- u
[02:02 pm]
Corbo -- No
[01:28 pm]
razorback9423 -- Um, is this shoutbox active?
[2019-9-14. : 11:18 am]
razorback9423 -- C.I.S. Conversion Mod will have a campaign, and the first part is coming this September.
[2019-9-13. : 12:03 am]
Wing Zero -- Memes
[2019-9-12. : 8:36 pm]
KrayZee -- I'm curious what internet archaeologists will find in Maplantis
[2019-9-12. : 5:17 pm]
MTiger156 -- Moral of the story - don't end up like Friendster
[2019-9-12. : 3:53 am]
Pr0nogo -- Voyager7456
Voyager7456 shouted: kill you opponent
Zoan
Zoan shouted: this map was boring as far as I remember lol
Please log in to shout.


Members Online: Roy, BeatMeistro, udyqiwyb