• 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.

[Spell] Resurrect buildings

Status
Not open for further replies.
Level 30
Joined
Feb 18, 2014
Messages
3,623
I think it's hardcoded. But you can resurrect them with triggers instead.
  • Building Dies
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A structure) Equal to TRUE
    • Actions
      • Unit Group - Add (Triggering unit) to BuildingGroup
  • Resurrect Building
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Resurrection
    • Actions
      • Set Temp_Point = (Position of (Triggering unit))
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units within 600.00 of Temp_Point matching ((((Matching unit) is in BuildingGroup) Equal to TRUE) and (((Matching unit) belongs to an ally of (Owner of (Triggering unit))) Equal to TRUE))) and do (Actions)
        • Loop - Actions
          • Set Revive_Point = (Position of (Picked unit))
          • Unit Group - Remove (Picked unit) from BuildingGroup
          • Unit - Create 1 (Unit-type of (Picked unit)) for (Owner of (Picked unit)) at Revive_Point facing Default building facing degree
          • Special Effect - Create a special effect at Revive_Point using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation (udg_Revive_Point)
      • Custom script: call RemoveLocation (udg_Temp_Point)
 
Status
Not open for further replies.
Top