• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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