hi guys,
i am trying to make a unit hold position regardless of if hes attacked.
it seams i can order units to attack, patrol or move but not hold
None.
Just keep moving the unit to the same location where ever you want him + Hypers
None.
Im assuming he wants the unit to be able to attack other units, so always move wouldn't work
None.
Having the location off the map might work, but I don't have experience with this. There is no Hold for AI, and the only way I can see forcing them to stay is by using units/buildings/terrain to keep them there. You could use cloaked ghost/lings too.
If you have enough locations you could also use (inverted) locations to keep the unit there. If he moves, move him back.
"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"
thx for the replys unfortunately i forgot to mention that there would be many of the same type of units on the map and that they would all have to stay where they are. and no they don't need to attack. anyway i will try constantly moving them to the same location and see if it works
None.
Constantly move ALL of them to the same off map location (or a location they can't actually move to).
"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"
thx for the replys unfortunately i forgot to mention that there would be many of the same type of units on the map and that they would all have to stay where they are. and no they don't need to attack. anyway i will try constantly moving them to the same location and see if it works
Many of the same unit? Just use a unit that doesn't move, like a kaydharin crystal. Also you can make each unit invincible if that wouldn't bother your map, so units wouldn't trail each other.
What
exactly is your situation?
None.
Make an
Inverted Location the exact size of the unit(modding tools may help with that) and center it on the unit, then detect if the unit is not in the location, if it is not, order it back, the reason for using an inverted location is because the unit must be touching all edges of the location at the same time in order to be detected, so if it's the exact size of the unit, even if it moves a pixel, it gets ordered back.
The reason you can't use the constant moving way is because it makes other units lose target on that unit, and even when they do shoot at it, they often miss because it is moving to often.
None.
Do what Clokr said. Make a 1x1 location and place it on unwalkable terrain (such as water). Then your trigger would look like this:
Conditions:
-Whatever you want to do to inititate the freeze
--------
Actions:
-Move ALL <Unit> at location ANYWHERE to 1X1 LOCATION
-Preserve Trigger
EDIT: Oh yea, you need to have hyper triggers in your map in order for this to work.
None.
It doesn't necessarily have to be 1x1, just as long as the center is unwalkable (for groud units.) And apparently off-map locations work better.
TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB -
topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig -
topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!
Yeah, they create no lag, since the location I guess is invalid or something, so SC doesn't even attempt to move it.
But as I said, you cannot use that moving method if you want them to be able to hit eachother, they will just continually miss.
None.
Yeah, they create no lag, since the location I guess is invalid or something, so SC doesn't even attempt to move it.
But as I said, you cannot use that moving method if you want them to be able to hit eachother, they will just continually miss.
You mean the units attacking will never hit the unit? I'm pretty sure that they still can, I'll have to dig up my old testing maps.
None.
They
can but they A: Have a hard time locking on to a single target, since it moves so much, they lose their focus on it and B: Since it's moving to often, they usually shoot, and the shot misses because the unit has been moved before the actual weapon hits them(even with instant attacks like marines)
Trust me, I tested this a lot in Random Quest RPG, you can make them more hittable if you use death counts to only move them every 6 trigger cycles or something.
None.
... and no they don't need to attack. ...
Also I agree with Falkoner. They have trouble attacking, and when they do attack they have trouble hitting.
TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB -
topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig -
topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!
Oh, I missed that
I assumed that since he wanted them to hold position... Well, I guess moving them would be the simplest way then
Move them to a location outside the map, as it creates less lag.
None.
I made a test map of it. You were right for the most part, here's what I found:
- If a unit is constantly being moved then it cannot be attacked
- A unit constantly being moved can still attack
In my test map, I set up four columns of a bunch of units. In the first column both the units are being moved. In the second, just Player1's are being moved. In the third, the unit you are attacking is being moved. And in the fourth, neither of the units are being moved. I'm going to try moving the location off the map.
http://www.staredit.net/?file=559
None.
Siege tanks and other splash units can attack a unit adjacent to a unit constantly being moved, and therefore splash the unit being moved. This has been tested and does work.
None.
ok i got what you guys are saying but i don't get how to move a location off a map. my editor wont let me and the only way to move one in game is to move it under a unit
None.
You can just place it over impassable terrain. You can hexedit or use StarForge.
EDIT: Apparently if you double-click the location in SCMDraft you can set the coordinates past the bounds and it wont fix it. I didn't test too much to see if this actually works, but whatever.
TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB -
topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig -
topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!