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

Some questions

Status
Not open for further replies.
Level 15
Joined
Jan 12, 2011
Messages
1,197
Hi guys,
I want to know some questions about map making:

1. I created a Phoenix hero, but it flies too low. So i want to add high to it, how do i do that?

2. When a building is destroyed i want it to reborn it to the players ownership which destroyed it. For example, i want to destroy a control point ( like in Azeroth Wars LR) and i want it to be mine, them.

Please help me! I would really appreciate your help and +rep! :D
(Sorry for bad english)
 
Level 7
Joined
Dec 26, 2010
Messages
401
1. In the object editor, if you scroll down to "Movement - Height" you can set your unit's flying height to what you want.

2.
  • Control Point Capture
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A structure) Equal to True
    • Actions
      • Unit - Create 1 (Unit-type of (Dying unit)) for (Owner of (Killing unit)) at (Position of (Dying unit)) facing (Facing of (Dying unit)) degrees
 
Level 16
Joined
Aug 7, 2009
Messages
1,406
That would leak a Location handle. The right way:


  • Control Point Capture
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A structure) Equal to True
    • Actions
      • set TempPoint=(Position of (Dying unit))
      • Unit - Create 1 (Unit-type of (Dying unit)) for (Owner of (Killing unit)) at TempPoint facing (Facing of (Dying unit)) degrees
      • Custom Script: call RemoveLocation(udg_TempPoint)
TempPoint is a "Point" type variable.
 
Status
Not open for further replies.
Top