I need help with two triggers

TheDarkBoy

New Member
Reaction score
3
Hi, the first trigger i need help with is: i need to make a camera trigger that when a wisp chooses a hero the camera moves over to the picked hero (like an Angel Arena or Hero Line War).
Second trigger i need help with is: when a hero dies the owner of the dead hero will get a message: "Your hero will revive shortly".
Any suggestions or ideas?

All comments apprieciated. Thanks.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
Trigger 1: when you buy a hero the camera for the owner of that hero will go to the position of him.
Code:
Untitled Trigger 001
    Events
        Unit - A unit enters (Playable map area)
    Conditions
        ((Triggering unit) is A Hero) Equal to True
    Actions
        Set TempPoint = (Position of (Triggering unit))
        Camera - Pan camera for (Owner of (Triggering unit)) to TempPoint over 1.50 seconds
        Custom script: call RemoveLocation (udg_TempPoint)
Trigger 2: when a hero dies it will display a message to the owner
Code:
Untitled Trigger 002
    Events
        Unit - A unit Dies
    Conditions
        ((Triggering unit) is A Hero) Equal to True
    Actions
        Game - Display to (Player group((Owner of (Triggering unit)))) the text: You've just died du...
 
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