• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Elevator Usage.

Status
Not open for further replies.
Level 7
Joined
Apr 17, 2017
Messages
316
i managed to do it for a single unit. But when more than one unit enters a regions which triggers the elevator, at the same time the other one got stuck inside. I need help.
Region 1 Enter
Events
Unit - A unit enters Region 000 <gen>
Conditions
Actions
Destructible - Open West wall of Elevator (2) 0004 <gen>
Destructible - Open South wall of Elevator (2) 0004 <gen>
Destructible - Set height of Elevator (2) 0004 <gen> to 3
Trigger - Turn on Region 1 Leave <gen>


Region 1 Leave
Events
Unit - A unit leaves Region 000 <gen>
Conditions
Actions
Destructible - Close West wall of Elevator (2) 0004 <gen>
Destructible - Close South wall of Elevator (2) 0004 <gen>
Destructible - Set height of Elevator (2) 0004 <gen> to 1
Trigger - Turn off (This trigger)
 
Level 12
Joined
Mar 24, 2011
Messages
1,082
You may want to put in some waits around.
Also, on the leave region trigger, add condition that there should be 0 units in the region.

You have to consider ALL possible combinations and user inputs when coding.

regards
-Ned
 
Status
Not open for further replies.
Top