Ok so let's say I have an arena with many walls and when I "shoot" at a wall, it will bounce off the wall. Now to find out how to bounce off the wall, I will need to know whether it is a horizontal wall or a vertical wall.
How do I detect what kind of wall it is without placing a location over every wall?
You could center a location on your unit, and have observers or burrowed units, etc on the walls.. only allow 1 unit to enter the location by its size for vertical or horizontal walls, and 2 for the opposite of whichever you used on the other wall.
Use different units to mark either horizontal or vertical walls.
[sarcasm]Yes and burrowed units can be placed on unwalkable terrain.[/sarcasm]
QUOTE(Oo.Deamon.oO @ Jun 20 2005, 04:51 PM)
only allow 1 unit to enter the location by its size for vertical or horizontal walls, and 2 for the opposite of whichever you used on the other wall.
[right][snapback]239567[/snapback][/right]
That statement is very confusing...
Couldn't you have it so that the edges of the wall are at a different hight?
Then have high walls be verticle and very high walls be horizontal, than have low be stuff between.
Here is the general idea, I know that you can modify it to your needs.
Put 1 locations to follow the bullet, preferably one which is a few tiles[sup]2[/sup] bigger than the bullet.
Put one burrowed unit (Most preferably) on each tile on top of the wall.
Once the bullet is shot, burrowed units will start to come into the locations.
If the location is horizontal, then the same number of units will enter the location at once equal to the locations width.
If it is Vertical then burrowed units will start entering the location one by one.
Now if the wall is diagonal, you would have to use a system similar to this one but with 2 or more locations.
Picture for all the people who won't understand:
I was thinking, whenever the bullet hits the wall center a a location on one of the walls buildings (assumeing the wall is made up of buildings). A horizontal or vertical and detect how many units are in that location.
I guess thats kinda the same that that Beer_Keg said.
What about along vertical walls 1 type of burrowed unit lets say lings... and along horizontal walls have drones... What's wrong with that? Unless you have multiple bullets going at a time. Then again if the walls are hgih terrain whenever a player brings atleast 1 buller to high location. Center location on it and whatever type of burrowed unit it is send it in a different direction. I'm interrestedi n seeing this map.
The wall is terrain. It is unwalkable terrain.
The terrain looks something like this:
[attachmentid=10648]
Use cloaked air units then.. Or switch to 14-1.

Another problem presented is the fact that I use grid systems. I spawn air units. Those wall units will cause a problem with the spawning of the grid systems.
I'll check out 14-1 but I want the map to look good

Eck, i meant 1-14

How are you working out that you've hit a wall in the first place?
I think that the above posts are suggesting that you preplace burrowed units on the walls (which I'm pretty sure is possible; ScmDraft certainly allows it).
Can the units (bullets) move diagonally? If they can, I'm not sure that BeeR's system will work.
This system is no longer needed. Thanks for your help anyways
