Teleport player when types -tp

ggoi

New Member
Reaction score
0
I want to teleport player to region [NvM] when he types -tp

I tryed some ways but can you tell me the exact trigger :)
 

cowmenace

New Member
Reaction score
22
in world editor, make a camera where you want him to look when he types -tp, then go to Camera-Apply Camera Object (Timed) and apply it for the player in whatever seconds (0 if instant)
 

Scary Nachos

Castro flashing Gang Signs!
Reaction score
45
Trigger:
  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) types a chat message containing -tp as An exact match
    • Conditions
    • Actions
      • Unit - Move (Triggering unit) instantly to (Center of MassingArea <gen>)


Fix leaks and add whatever you want on it
 

ggoi

New Member
Reaction score
0
Trigger:
  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) types a chat message containing -tp as An exact match
    • Conditions
    • Actions
      • Unit - Move (Triggering unit) instantly to (Center of MassingArea <gen>)


Fix leaks and add whatever you want on it

i tried it already

the unit is a hero

tried and adding condition triggering unit is a hero = true
 

Scary Nachos

Castro flashing Gang Signs!
Reaction score
45
>What triggering unit?

Whatever he wants it to be, can be changed around

>i tried it already

the unit is a hero

tried and adding condition triggering unit is a hero = true

Yeah that should work if thats what you want
And you should change around my trigger.
 

cowmenace

New Member
Reaction score
22
gah, some people think they know more than they do. Well, if a player types a message, there is no triggering unit, there's a triggering player. You can however, try messing around with this.

Trigger:
  • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is selected by (Triggering player)) Equal to True)) and do (Actions)
    • Loop - Actions
      • Unit - Move (Picked unit) instantly to (Center of (Playable map area))


With this, the player must be selecting the unit that he wants teleported.
You can say if unit type of picked unit is (unit type of the unit you want to be moved) then move it.
You can also do an integer check to see how many he is selecting and cancel the trigger if it is more than one unit (if you only want one to be transferred)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top