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

Control of a building

Status
Not open for further replies.
  • Building Control
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A structure) Equal to True
    • Actions
      • Set TempPoint = (Position of (Dying unit))
      • Set TempPlayer = (Owner of (Killing unit))
      • Set TempType = (Unit-type of (Dying unit))
      • Unit - Create 1 TempType for TempPlayer at TempPoint facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_TempPoint)
TempPoint is a point variable
TempPlayer is a player variable
TempType is a unit type variable
 
Status
Not open for further replies.
Top