Some questions

Status
Not open for further replies.
Level 15
Joined
Jan 12, 2011
Messages
1,196
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)
 
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
 
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.
Back
Top