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

[Solved] Unit Hero Spawn Location

Status
Not open for further replies.
Level 7
Joined
May 23, 2011
Messages
179
I got a problem on the location where the unit will sprawn...... I want the unit to sprawn in the region named "Initialization Starting Hero Sprawn"...
Please help........
  • UP Create
    • Events
      • Player - Player 1 (Red) types a chat message containing -ar as An exact match
      • Player - Player 1 (Red) types a chat message containing -allrandom as An exact match
    • Conditions
    • Actions
      • Custom script: local unitpool up = LoadUnitPoolHandle(udg_UPhash, 0, StringHash("unitpool"))
      • Custom script: call UnitPoolRemoveUnitType(up, GetUnitTypeId(PlaceRandomUnit(up, GetTriggerPlayer(), 0, 0, 0)))
      • Custom script: set up = null
:goblin_cry::goblin_cry:
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • UP Create
    • Events
      • Player - Player 1 (Red) types a chat message containing -ar as An exact match
      • Player - Player 1 (Red) types a chat message containing -allrandom as An exact match
    • Conditions
    • Actions
      • Custom script: local unitpool up = LoadUnitPoolHandle(udg_UPhash, 0, StringHash("unitpool"))
      • Custom script: call UnitPoolRemoveUnitType(up, GetUnitTypeId(PlaceRandomUnit(up, GetTriggerPlayer(), GetRectCenterX(gg_rct_Initialization_Starting_Hero_Sprawn), GetRectCenterY( gg_rct_Initialization_Starting_Hero_Sprawn), 0)))
      • Custom script: set up = null
 
Status
Not open for further replies.
Top