HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Replacing unit (Hard to explain read inside)

04-27-2009, 09:25 PM#1
Shadow_killer
Ok so i have this trigger that replaces a wall to a walkable wall so units can walk past it. And it works great, but here comes the problem. If you use the ability, place a unit above the wall and use the ability again to make the wall get back it paths, the wall gets moved. So i need help to move all the units that stand in the rect when the wall uses the ability.

Trigger i am using now
Trigger:
Wall Down
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Wall Down
Collapse Actions
Unit Group - Pick every unit in (Units in Rect 002 <gen>) and do (Unit - Move (Triggering unit) instantly to (Center of Rect 003 <gen>))
Unit - Replace (Casting unit) with a Wall Down using The old unit's relative life and mana
Special Effect - Create a special effect at (Position of (Casting unit)) using Abilities\Spells\Orc\FeralSpirit\feralspirittarget.mdl
Selection - Select (Last replaced unit) for Player 1 (Red)
04-27-2009, 09:35 PM#2
Anopob
I haven't tried this but..would (un)hiding the wall work instead of replacing it with a wall down and then replacing the wall down with a wall up? Would be pretty cool if it did.
04-28-2009, 06:36 PM#3
Shadow_killer
Actually it works wonder, the wall doesnt get moved when units are standing where it should be. So thanks! :)