• 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] Command

Status
Not open for further replies.
Level 3
Joined
Jul 26, 2011
Messages
38
Hi Guys,

can u help me with this. i want to make a trigger that player1(red) player2(blue) player3(teal) type -tp an exact match

instantly move the hero of the typing player in region1<gen>
how to do this in trigger?

:vw_wtf:


thx thx thx ^_^
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 029
    • Events
      • Player - Player 1 (Red) types a chat message containing -tp as An exact match
    • Conditions
    • Actions
      • Set point = (Center of region)
      • Unit - Move *unit* instantly to point
      • Custom script: call RemoveLocation(udg_point)
If your heroes are set into an array, then use unitArray[Player number of triggering player]
 
Status
Not open for further replies.
Top