• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Frontal damage

Status
Not open for further replies.

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
Triggers that damages units in the angle that the walking unit is facing and the Area of Effect (or Radius) that damages. I just don't know how to improve this. But I don't have doubt that is by these actions above /\.
 
Level 18
Joined
May 11, 2012
Messages
2,103
Something like this will do
  • Damage
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Set TempPoint = (Position of (Your unit))
      • Set TempPoint2 = (TempPoint offset by 100.00 towards (Facing of (Your unit)) degrees)
      • Set TempUnitGroup = (Units within 100.00 of TempPoint2 matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of (Your unit))) Equal to True)))
      • Unit Group - Pick every unit in TempUnitGroup and do (Actions)
        • Loop - Actions
          • Unit - Cause (Your unit) to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call RemoveLocation(udg_TempPoint2)
      • Custom script: call DestroyGroup(udg_TempUnitGroup)
      • Custom script: set udg_TempPoint = null
      • Custom script: set udg_TempPoint2 = null
      • Custom script: set udg_TempUnitGroup = null
 
Status
Not open for further replies.
Top