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

Targetting Corpses

Status
Not open for further replies.
Level 4
Joined
May 16, 2010
Messages
94
I have made an ability based on Doom to summon skeletons from corpses. I have set it to only allow Dead targets (corpses).

However, i cant select corpses: it says Must target a corpse.

My question is: Is it even possible to target corpses?
 
Nop, the only way to do so is using a point target ability.
Use Channel with Target type set to "Point".
Then, use this trigger:
  • Tr
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability bieng cast) Equal to X
  • Actions
    • Set Point1 = (Target point of ability being cast)
    • Set Group = (Units within 300.00 of Point1 matching ((Matching unit) is alive) Equal to False)
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • (Number of units in Group) Not Equal to 0
      • Then - Actions
        • Unit - Create 1 dummy for (Owner of (Triggering unit)) at Point1 facing default building degrees
        • Unit - Add Raise Dead to (Last created unit)
        • Unit - Order (Last created unit) to Undead Necromancer - Raise Dead
        • Unit - Add a 2.00 seconds generic expiration timer to (Last created unit)
      • Else - Actions
        • Game - Display to (Player Group(Owner of (Triggering unit))) the text: "No corpses found."
    • Custom script: call RemoveLocation (udg_Point1)
    • Custom script: call DestroyGroup (udg_Group)
Group is a Unit Group variable and Point1 a Point variable.
 
Status
Not open for further replies.
Top