Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Good ol' Unit Unplaceable
Good ol' Unit Unplaceable
Jul 2 2009, 6:02 am
By: FatalException  

Jul 2 2009, 6:02 am FatalException Post #1



In my map, sometimes there is a need to move things like ground units and powerups near the players main unit. Of course, when said unit is next to a wall, things that get moved to it instead go to the center. In an attempt to circumvent this, I made a small location in the center of the map and had things that went there be moved to a larger location centered on where they should have gone, but as long as there is a wall or otherwise unusable sapce around the middle of the location, the move doesn't work. Is there any other way to solve this problem?



None.

Jul 2 2009, 6:24 am Vrael Post #2



If it doesn't move correctly, use a mobile grid to check locations near the center of the location where you are moving it to to see if they can be moved to. If they can be moved to, move the unit there instead. This method has worked well so far in my map, which also has to circumvent a number of unit unplacable errors.



None.

Jul 2 2009, 6:43 am FatalException Post #3



Is there a way to use mobile grids like that without just brute-forcing it, or do I have to make a mobile grid, center the location, try to move, and repeat until it works?



None.

Jul 2 2009, 6:56 am Vrael Post #4



Here's the triggers I used:

Big Ol' Trigger List




None.

Jul 2 2009, 9:57 am JaFF Post #5



There is a much simpler solution. Say you want to move unit A to your hero. You must find a unit B that is greater or equal in every dimentsion than unit A. Then do the following:

Create unit B at a remote location. Move unit B to your hero. Remove unit B. Create unit A to the location where unit B was.

Also, in response to this:
Quote
be moved to a larger location centered on where they should have gone
Contrary to popular belief, the size of the location units are moved to or created at does not change the outcome in any way (as long as the location center is where you want it to be).



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:35 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[01:35 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[01:35 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[01:35 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[01:35 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[01:34 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[01:34 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[03:27 am]
m.0.n.3.y -- Maybe because it's an EUD map?
[03:27 am]
m.0.n.3.y -- Can't upload maps to the DB. Error says "The action you have performed caused an Error". Any word?
[2024-4-25. : 7:46 am]
RIVE -- :wob:
Please log in to shout.


Members Online: jun3hong