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

[Trigger] how in the mother of !@#$ can i do this

Status
Not open for further replies.
Events
Player - Player X selects a unit (Player - Selection Event)
Conditions
((Triggering unit) is a Hero) Equal to True (Boolean Condition)
Actions
Set MapCenter = (Center of (Playable Map Area))
Unit - Move (Triggering unit) instantly to MapCenter
Custom script: call RemoveLocation (udg_MapCenter)

This is what you want? Cause i don't get the "middle" thing for sure.
 
Level 5
Joined
Aug 17, 2008
Messages
125
On the event that fires when a player selects a unit, check what unit it is and if it is that unit, move the player's hero instantly to the centre of the region of your choice.
could you explain this abit easier i didnt really get it all but the region stuff i get that

Events
Selection - Player X selects a unit
Conditions
((Triggering unit) is a Hero) Equal to True
Actions
Set MapCenter = (Center of (Playable Map Area))
Unit - Move (Triggering unit) instantly to MapCenter
Custom script: call RemoveLocation (udg_MapCenter)

This is what you want? Cause i don't get the "middle" thing for sure.
have you ever played island defense when you select builder they get teleported to middle
 
Last edited by a moderator:
Status
Not open for further replies.
Top