Anyone know a quick way to do this? I'm pretty new to this stuff in the Starcraft 2 editor.
I know I can have a region continuously follow a preset unit like the good ol' days of Starcraft 1 and maybe a little of Starcraft 2.
I can't find the issue order command that allows targets though (I do see the one that does not allow targets though). It would be nice if there was a method that functions similarly to right clicking a friendly unit with another friendly unit in game. Sets some kind of follow order on the unit.
Edit: Wow, so there's a parenthesis ONE PARENTHESIS on the "issue order" action that allows you to change it so you can issue an order to a unit targeting something. I don't believe this.
WHY YOU DO THIS BLIZZARD?!
For those of you who want to replicate this, here's how you do it:
1. Open the trigger editor
2. Create a new trigger
3. Set the event to whatever you want to trigger the unit to follow you
4. Set the action to "Issue Order"
5. Click the blue parenthesis and set it to order targeting unit or point or whatever you want
6. Set the ability command to "Move"
7. Set the target whether that's another point or another unit
Because it is pretty obvious? Just look at the native declarations and it all makes perfect sense.
Quote:
8. Leave replace existing orders alone
You will want to change that to overwrite existing orders otherwise the until will only start following after it finishes what it is doing which could possibly be to go somewhere far away over a long time.
Quote:
What if I only want him to attack anything I attack?
You pickup target acquisition events for your unit and pass them as attack orders to it. You then append after the attack order, via not replacing existing orders, a move to your unit so it follows it after it is done attacking. So it only attacks when you attack you can disable its weapons if you are currently not attacking and enable them again when you start attacking.
Because it is pretty obvious? Just look at the native declarations and it all makes perfect sense.
Well, I eventually found it and then some guy answered my question after I found the answer XD. Maybe my instructions were too long though and he thought his answer would be better, which makes sense. I wouldn't say it's very obvious to have one small blue parenthesis though. At least not obvious for a new guy like me.
Also, I thought replacing the existing orders did overwrite the existing orders? Thanks for the heads up, I'll have to look into this overwrite existing orders thing instead if I find some bugs in my current implementation.
Disabling attack is also a clever suggestion. I might use that some situations. Right now, it's just working by issuing my unit a move every second. Feels kind of messy without a behavior to do it, but it seems to be working in the little testing I've done so far.
Anyone know a quick way to do this? I'm pretty new to this stuff in the Starcraft 2 editor.
I know I can have a region continuously follow a preset unit like the good ol' days of Starcraft 1 and maybe a little of Starcraft 2.
I can't find the issue order command that allows targets though (I do see the one that does not allow targets though). It would be nice if there was a method that functions similarly to right clicking a friendly unit with another friendly unit in game. Sets some kind of follow order on the unit.
Edit: Wow, so there's a parenthesis ONE PARENTHESIS on the "issue order" action that allows you to change it so you can issue an order to a unit targeting something. I don't believe this.
WHY YOU DO THIS BLIZZARD?!
For those of you who want to replicate this, here's how you do it:
1. Open the trigger editor
2. Create a new trigger
3. Set the event to whatever you want to trigger the unit to follow you
4. Set the action to "Issue Order"
5. Click the blue parenthesis and set it to order targeting unit or point or whatever you want
6. Set the ability command to "Move"
7. Set the target whether that's another point or another unit
8. Leave replace existing orders alone
in triggers use the issue order, then click on the little bracket and change the order type to target
This is close, but my unit attacks any hostile in range. What if I only want him to attack anything I attack?
Edit: Never mind, I got it. I just have it turn on a periodic trigger that constantly issues the move command every second or so.
I feel as though this would be cleaner with a behavior though...I have no idea how to do that though.
Because it is pretty obvious? Just look at the native declarations and it all makes perfect sense.
You will want to change that to overwrite existing orders otherwise the until will only start following after it finishes what it is doing which could possibly be to go somewhere far away over a long time.
You pickup target acquisition events for your unit and pass them as attack orders to it. You then append after the attack order, via not replacing existing orders, a move to your unit so it follows it after it is done attacking. So it only attacks when you attack you can disable its weapons if you are currently not attacking and enable them again when you start attacking.
Well, I eventually found it and then some guy answered my question after I found the answer XD. Maybe my instructions were too long though and he thought his answer would be better, which makes sense. I wouldn't say it's very obvious to have one small blue parenthesis though. At least not obvious for a new guy like me.
Also, I thought replacing the existing orders did overwrite the existing orders? Thanks for the heads up, I'll have to look into this overwrite existing orders thing instead if I find some bugs in my current implementation.
Disabling attack is also a clever suggestion. I might use that some situations. Right now, it's just working by issuing my unit a move every second. Feels kind of messy without a behavior to do it, but it seems to be working in the little testing I've done so far.