• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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