• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Picking Corpse Of Type >.<

Status
Not open for further replies.
Level 10
Joined
Jan 21, 2007
Messages
575
Alright im stuck i cannot figure out how to do this:

I want to be able to set an integar variable to be equal to the number of corpses within 600 of Point L, but they need to be tauren corpses (Tauren, Spirit Walker, Cairn ect) Is there any way of detecting if it is a corpse of a tauren. I assumbes there would be becuase of the spell ancestral spirit but no dice so far : /???

Overview: Basicaly i want to know if there is a condition to check if a corpse or a live unit is a tauren.
 
Last edited:
Can't you just pick all taurens and check if they are alive?

or something like this:

  • Set THE_INTEGER = 0
  • Unit Group - Pick every unit in (Units within 600.00 of THE_POINT) and do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • ((Picked unit) is dead) Equal to True
              • Or - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Picked unit)) Equal to Tauren
                  • (Unit-type of (Picked unit)) Equal to Spirit Walker
                  • (Unit-type of (Picked unit)) Equal to Tauren Chieftain
        • Then - Actions
          • Set THE_INTEGER = (THE_INTEGER + 1)
        • Else - Actions
This leaks.

You could change the "unit in range" to "unit in range matching condition" and check if it's dead there.
 
Last edited:
True corpses are specific to units, haha thanks!

EDIT: I know hot to remove leaks, no biggie.
 
Status
Not open for further replies.
Back
Top