Creating Unit via loops Problem

vypur85

Hibernate
Reaction score
803
It works. Just use 'Triggering unit', as told. :)

Code:
Trre Of Life Loops
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to TreeOfLife 
    Actions
        Set unit = (Target unit of ability being cast)
        Set Temp_point = (Position of (Target unit of ability being cast))
        For each (Integer A) from 1 to 6, do (Actions)
            Loop - Actions
                Set Temp_point2 = (Temp_point offset by 600.00 towards ((Real((Integer A))) x 60.00) degrees)
                Unit - Create 1 TreeOfLife for (Owner of (Triggering unit)) at Temp_point2 facing Default building facing degrees
                Unit - Add Drain Life  to (Last created unit)
                Unit - Order (Last created unit) to Neutral Dark Ranger - Life Drain unit
                Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
                Custom script:   call RemoveLocation(udg_Temp_point2)
        Custom script:   call RemoveLocation(udg_Temp_point)

Added map to avoid confusion. Hope the bug doesn't occur again.
 

Attachments

  • Tree Of Life Test Map.w3x
    18.4 KB · Views: 107
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