HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Any way to make a player-selective Way Gate ability?

11-13-2006, 06:36 AM#1
CaptainPicard
I've got this spell, "Force Wall", which ideally would summon a wall that blocks enemies but allows friends to pass. I've set it up to create invisible Way Gates on each side of the wall which make it quite traversible to allied units, but I find that enemies can also get through, despite the fact that I set the customized "Way Gate" ability to target only "Friend, Allied, Ground, Not Self" (the Way Gate itself is not a building, so I figured it was a good idea to do "not self"). I've also tried restricting it further to just "Player Units." That doesn't work either.

Any help would be much appreciated. I've commented out the portion of my code that does the way gates, so it works all right as a spell for now, but I'd really like to put that feature back in.

Capt. Picard
11-13-2006, 08:00 AM#2
Anitarf
This is difficult, warcraft pathing is global and affects all units equaly, this is why you also can't make good looking bridges.
11-13-2006, 04:48 PM#3
CaptainPicard
Thanks, Anitarf. This clears up that issue. Also, I've implemented your hack on the Cinematic system, it now works well for my purposes.
11-14-2006, 09:43 PM#4
[VDM]Amn
just create a dummy unit and use this values:

Dummy must be:
Code:
invisible.
invulnerable.
have ability Locust.
able to attack.
minimum damage.
low cooldown time, like 0.3 sec.
0 movement speed.
max turn rate.
a flying unit.

put the dummy where the ability is cast

Let's say the dummy is named DummyWall
Create a trigger like this:

Trigger:
Collapse Events
Unit - A unit is attacked
Collapse Conditions
Attacking Unit is Equal to DummyWall
Order of Attacked Unit not equal to stop
Collapse Actions
Unit - Order attacked unit to stop
Unit - Order attacking unit to attack ground his position

ordering the dummy unit to attack-ground will make him get another target, not again the attacked unit, cuz it was ordered to stop and wont be preferred for the dummy unit to attack him having anothers enemies at range.

am i right?
if it doesn't work tell me.