HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[Trigger Help!] Open Gate If Hero Has "Key"...

06-04-2003, 01:22 PM#1
Spykes424
How can i configure a trigger so that if a hero enters a region and he has a certain item... it will open a gate? :(
06-04-2003, 02:36 PM#2
TucksMa
Here's how I do it...

Event
Unit - A unit enters <region name here>

Conditions
((Triggering unit) has <item here>) Equal to True

Actions
Trigger - Turn off (this trigger)
Destructible Doodad - Open <Gate name here>


Other possible actions are to remove <item> and turn off trigger for not having item (if you have a trigger for when unit enters area and DOESN'T have the item).
06-04-2003, 03:45 PM#3
Spykes424
found it nvrmnd! :D
06-04-2003, 03:46 PM#4
FyreDaug
It's a boolean comparison.
06-04-2003, 04:08 PM#5
Spykes424
ok gates working, now is there a way i can add in a gate open/close sound?
06-04-2003, 05:44 PM#6
bludragn
Open the Sound Editor and find the sound you want to be played, right click it and do Use Internal Sound (or you can import a sound). Go back to the Trigger Editor and under the actions add in: Sound - Play <Sound> and any selected sounds will appear in the variable list.
06-04-2003, 05:55 PM#7
theJ89
I would suggest making the open/close sound a 3-d sound, so players 50 miles away don't hear it :////
06-04-2003, 07:29 PM#8
Milkman
TheJ89, nah! anyways, i dodnt know that was used 4 that...