• 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 make,when i buy a unit from a Barrack and its automatically move instant to

Status
Not open for further replies.
Level 6
Joined
Mar 9, 2009
Messages
175
How to make,when i buy a unit from a Barrack and its automatically move instant to the point ?? Like i saw few ''Hero Defense'' Games, brought unit and its auto teleport or move instantly to the point .


Guys come help me with this :grin::grin::grin::grin::grin::grin:
 
Level 11
Joined
Jun 20, 2009
Messages
880
Make a region under the Barracks. Then trigger this:

  • Teleport
    • Events
      • Unit - A unit enters Barracks_Region 000 <gen>
    • Conditions
    • Actions
      • Set Location = (Center of Teleport_Region 001 <gen>)
      • Unit - Move (Triggering unit) instantly to Location
      • Custom script: call RemoveLocation(udg_Location)
The "Location" is Point variable.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
@Kala
Your Event is pretty much you "control" the game, it's no fun :(
Just follow Pharaoh_'s advice to make the trigger to be more variety than in a simple unit entering a region Event.
Also, if you use that kind of Event, you never know where the Players will build their Barracks and stuffs (doesn't know where to build = doesn't know where to put the region in the map), making your trigger flawed to the max
 
Status
Not open for further replies.
Top