• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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