HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Create unit on unit but can't walk on it

02-29-2004, 11:53 PM#1
Mazuli
What I am trying to achieve is the following:

I use an ability, a unit gets created EXACTLY where my unit is. The only way I can get this to work is if one unit is flying and the other isn't, or if both have a collision size of 0.

My unit (the one who used the ability) can walk off this newly created unit, but cannot walk back on it. For example, I use the ability, the new unit comes right on where I am. If I move anywhere, I can't move back on that unit.

The catch is the caster has to have a collision size of 0. I don't care if the newly created unit has a collision size of 0 so long as the caster can't get within 64 (whatever the unit of measuring in wc3 is) in any direction of it.


Any ideas? I can't use a variable for each thing created as there could potentially be 32+ at any given time.
03-01-2004, 01:37 AM#2
Mazuli
Oh another thing to add. I tried many methods including using an invisible destructable. The problem is when I click to move it usually makes me move on the wrong side. I want to be able to move anywhere. I know this is probably very simple but I just can't figure it out. emote_confused
03-01-2004, 05:13 AM#3
Newhydra
DL my gate demo map from the repository, and look at the gate unit...that lets you walk over/through the unit.

http://www.wc3campaigns.com/forums/s...threadid=46841

(that will provide an example of a unit which should do what you want though you may need to turn it into a building...feel free to copy it)