HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

i have a gate problem

07-23-2003, 12:55 PM#1
Crimsongg137
how do u make a gate open so only an ally of the player can go there the gate
07-23-2003, 05:08 PM#2
35263526
Make a region in front of the gate. I'd call it gate GateOpen.
Then make a new trigger:


Events
Unit - A unit enters GateOpen
Conditions
((Owner of (Entering unit)) is an ally of Player 1 (Red)) Equal to True
Actions
Destructible - Kill (the gate you want opened)
Wait 5.00 seconds
Destructible - Resurrect (the gate you want opened) with (Max life of (the gate you want opened)) life and Show birth animation

This trigger assumes that P1 and his allies are the ones who you want to be able to open the gate. Change 5 secs to whatever you want but i find 5 secs is best
07-23-2003, 05:21 PM#3
Vilex
who dont have to kill just just order it to open
07-23-2003, 07:28 PM#4
35263526
sorry, got mixed up

Also, id make a map initializationn trigger that makes the gate invunerable so the enemy cant brake it open
07-23-2003, 07:35 PM#5
Crimsongg137
thanks for the help i like had to wait like acouple of days for this i think
07-23-2003, 07:53 PM#6
Crimsongg137
rofl in stead of destroyin it y dont we open the gate doh!!!1
07-24-2003, 10:31 AM#7
35263526
I did say i made a mistake.
07-24-2003, 11:08 AM#8
theJ89
And also, to stop enemy units from going through while it's open, do:

A unit enters (reigon)

Unit is an enemy of Player 1

Move Triggering Unit Instantly to (exit)
07-24-2003, 03:31 PM#9
Crimsongg137
i dotn wanan do thta last thing u said cuz i hvae avotign thing that would like make it like a siege on the person who has the flag.