• 🏆 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!

[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