Trigger problem

Avaleirra

Is back. Probably.
Reaction score
128
Hi, I created this trigger to teleport a unit from one point of the map to another point.

Trigger:
  • Events
    • Unit - A unit enters teleport1 <gen>
    • Conditions
    • Actions
    • Set unit_teleport = (Unit-type of Triggering unit))
    • Unit - Remove (Triggering unit) from the game
    • Unit - Create 1 unit_teleport for (Owner of (Triggering unit)) at Center of destination <gen>) facing Default building facing degrees


This works fine for normal units. But when a hero enters, it makes the hero appear at lvl 1.

+rep for solution :D

EDIT: Sorry for the crappy trigger, this is my first time posting one :)
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Well, why not just move the unit ???

Trigger:
  • Unit - Move (Triggering unit) instantly to (Center of destination <gen>)


Also, this will leak, so I suggest you do this:

Trigger:
  • Set TempPoint = (Position of (Triggering unit))
    • Unit - Move (Triggering unit) instantly to TempPoint
    • Custom script: call RemoveLocation(udg_TempPoint)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top