• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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