• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Spell] Resurrect buildings

Status
Not open for further replies.
Level 28
Joined
Feb 18, 2014
Messages
3,580
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