Warcraft III resources & community, 2003–2006 · archived

HElp!

9 posts
#1

HElp!

How can I make a trigger make a unit walk under a bridge I've tried:

Trigger 1

Events
Unit - A unit enters Region 002

Conditions
((Entering unit) is A flying unit) Equal tho False

Actions
Unit - Hide(entering unit)
Wait 2.00 seconds
Unit - Move (Entering unit) instantly to (Center of Region 003 <gen>)
Unit - Unhide (Entering unit)


Trigger 2

Events
Unit - A unit enters Region 003

Conditions
((Entering unit) is A flying unit) Equal tho False

Actions
Unit - Hide(entering unit)
Wait 2.00 seconds
Unit - Move (Entering unit) instantly to (Center of Region 002 <gen>)
Unit - Unhide (Entering unit)
#2
there is an endless loop in your triggers: if a unit enters region2, he will be teleported to region3; and if a unit enters region3, he will be reteleported to region2 etc.
u have to use for regions:
teleport from region2 to region4 (should be behind/before region3) and teleport from region3 to region5 (should be behind/before region2)
by the way, i also doesn't have a good looking solution; look here :? http://www.wc3sear.ch/viewtopic.php?t=1240
#3
What has heppened when you tried those triggers out? If you explain how they are not working or what odd side effects they are creating, it would be easier to find a solution. Because typically teleporting a unit to a region doesnt fire "unit enters region" actions...they actually have to move into the region...at least that I've noticed....
#4
Units cannot walk under the bridge.
#5
SophoUnits cannot walk under the bridge.


Ya Sopho is right war3 doesnt have that feature unless you edit the trigger and teleport them ,
#6
"Triggering unit" can work better !
#7
Öhm, what? What should "triggering unit" do better? If you have an "enters region"-event, best to refer is "entering unit".
#8
I use it to all my trigger who use the event "enter in rect" for example:

Events:
Unit - A unit enters Flag1 <gen>

Condition:
(Owner of (Triggering unit)) Not equal to Neutral Hostile
((Owner of (Triggering unit)) is an ally of (Owner of U_OwnerCerclePuissance[1])) Equal to False

Action:
Cinematic - Send transmission to (Player group((Owner of (Triggering unit)))) from (Triggering unit) named (Name of (Triggering unit)): Play No sound and display Territory taken !. Modify duration: Set to 1.20 seconds and Don't wait
[...]

And the trigger work, but maybe it isn't the solution of initial problem !
#9
There already was a solution to this in the past...