• 🏆 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!

Trigger to detect number and unit type of transported unit

Status
Not open for further replies.
Level 9
Joined
Jul 20, 2009
Messages
427
Is there a trigger that would allow me to detect the number of units inside a loading unit and also check if it has a unit of specific type..
In my map I created a custom unit (house) that has the ability load/unload transport. I would like to ask for help in creating a trigger that would allow me to detect if the house has 1 male villager and 1 female villager(custom peasants)inside, if so, a a create unit child trigger would fire..
+rep to anyone who could help me with this one, thanks in advance..
 
Level 12
Joined
May 21, 2009
Messages
994
I dont got world editor here so i cant help you with first question but second
then do this if you want to detect if the House has load/unload

  • Detect House
  • Events
  • Time - Time elapsed 1.00 seconds of game time
  • Conditions
  • Integer - Level of Load/Unload for House_Gen_0993 (or whatever its called) greather than 0
  • Actions
  • Unit - What ever actions you want
 
Status
Not open for further replies.
Top