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

How to spawn Building like x hero ???

Status
Not open for further replies.
Level 2
Joined
Apr 7, 2010
Messages
21
how to spawn a building like x hero that only show up if we play the map and wont show up even if we open it using a WE.

so.. is there any way to spawn a building ( any building we choosed) in the area i want or maybe in the region that i have set. So.. if we play the map the building will appear/spawn in the area or region that i wanted.

Note : Like x hero siegie the building only show up or spawn if we play the map so it wont appear if we dont play the map. That mean even you open the map in the WE you wont see the building Like X hero siegie ( some x hero siegie map can be open in WE ).
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Yeah, you can create a region in the editor, and then create unit using the coordinates of the region.

It's quite straightforward. I can't give you the exact trigger since I have trouble guessing when you want to create it. Just use proper event. Map initialization event makes the building to be created when the map loads for example.

Use Unit - Crete units in region action.

  • Untitled Trigger 135
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set point = (Center of *your region*) // point is a point variable
      • Unit - Create 1 Farm for Player 1 (Red) at point facing Default building facing degrees // Change the oner if needed
      • Custom script: call RemoveLocation(udg_point) // gets rid of the leak
About leaks: http://www.hiveworkshop.com/forums/triggers-scripts-269/things-leak-35124/
 
Status
Not open for further replies.
Top