just hold
This topic is locked. You can no longer write replies here.
Jul 7 2008, 1:58 pm
By: AvatarOfRage  

Jul 7 2008, 1:58 pm AvatarOfRage Post #1



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.

Jul 7 2008, 2:04 pm Rawr Post #2



Just keep moving the unit to the same location where ever you want him + Hypers



None.

Jul 7 2008, 2:13 pm Hug A Zergling Post #3



Im assuming he wants the unit to be able to attack other units, so always move wouldn't work



None.

Jul 7 2008, 2:18 pm rockz Post #4

ᴄʜᴇᴇsᴇ ɪᴛ!

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?"

Jul 7 2008, 3:46 pm AvatarOfRage Post #5



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.

Jul 7 2008, 3:59 pm rockz Post #6

ᴄʜᴇᴇsᴇ ɪᴛ!

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?"

Jul 7 2008, 4:02 pm CecilSunkure Post #7



Quote from AvatarOfRage
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.

Jul 7 2008, 4:20 pm Clokr_ Post #8



http://www.staredit.net/wiki/Immobilizing_Units



?????

Jul 7 2008, 8:05 pm Falkoner Post #9



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.

Jul 7 2008, 8:09 pm Atlos Post #10



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.

Jul 7 2008, 8:12 pm O)FaRTy1billion[MM] Post #11

👻 👾 👽 💪

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!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jul 7 2008, 8:20 pm Falkoner Post #12



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.

Jul 7 2008, 8:33 pm Atlos Post #13



Quote from Falkoner
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.

Jul 7 2008, 8:36 pm Falkoner Post #14



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.

Jul 7 2008, 8:40 pm O)FaRTy1billion[MM] Post #15

👻 👾 👽 💪

Quote from AvatarOfRage
... 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!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jul 7 2008, 8:44 pm Falkoner Post #16



Oh, I missed that :P 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.

Jul 7 2008, 9:00 pm Atlos Post #17



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.

Jul 7 2008, 9:11 pm Pyro682 Post #18



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.

Jul 7 2008, 9:58 pm AvatarOfRage Post #19



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.

Jul 7 2008, 10:07 pm O)FaRTy1billion[MM] Post #20

👻 👾 👽 💪

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!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[05:41 am]
Ultraviolet -- 🤔 so inf is in you?
[04:57 am]
O)FaRTy1billion[MM] -- my name is mud
[04:35 am]
Ultraviolet -- mud, meet my friend, the stick
[10:07 pm]
lil-Inferno -- nah
[08:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[05:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
[05:24 pm]
lil-Inferno -- poopoo
[05:14 pm]
UndeadStar -- I wonder if that's what happened to me. A returned product (screen) was "officially lost" for a while before being found and refunded. Maybe it would have remained "lost" if I didn't communicate?
[03:36 pm]
NudeRaider -- :lol:
Please log in to shout.


Members Online: 6carolinec321yL5, Zycorax, 1carolinee1322wB3, Ziemgs05, NudeRaider