[GUI]How to add damage to Units with triggers

Status
Not open for further replies.
Level 2
Joined
Mar 1, 2009
Messages
17
the next problem how i use it in a hashtable? XD
  • KatonGMove
    • Events
      • Time - Every 0.04 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in KatonGGroup and do (Actions)
        • Loop - Actions
          • Set KatonGAngle = (Load 0 of (Key (Picked unit)) from KatonGokakyoHash)
          • Set KatonGDistance = (Load 1 of (Key (Picked unit)) from KatonGokakyoHash)
          • Set KatonGTime = (Load 2 of (Key (Picked unit)) from KatonGokakyoHash)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'- Condition
              • KatonGTime greater than 0.00
            • 'THEN'- Actions
              • Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by KatonGDistance towards KatonGAngle degrees)
              • Specialeffect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
              • Hashtables - Save (KatonGTime - 0.04) as 2 of (Key (Picked unit)) in KatonGokakyoHash
            • 'ELSE'- Actions
              • Hashtables - Clear all child hashtables of child (Key (Picked unit)) in KatonGokakyoHash
              • Unit Group - Remove (Picked unit) from KatonGGroup
this time i cant use another loop because of the unit group at the beginning!
 
Last edited:
Status
Not open for further replies.
Top