• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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