Damage detection

Reaction score
7
It seems 'Takes damage' is only available for 'Specific Unit Event'. To use it for all units on the map you will need to add the event when each unit is created:
Trigger:
  • Unit Registration 1
    • Events
      • Map initialisation
    • Actions
      • Unit Group - Pick every unit in (Units in Playable Map Area) and do (Trigger - Add to (Unit Damaged <gen>) the event (Unit - Picked unit Takes damage))

Trigger:
  • Unit Registration 2
    • Events
      • A unit enters Playable map area
    • Actions
      • Trigger - Add to (Unit Damaged <gen>) the event (Unit - Entering unit Takes damage)

Replace 'Unit Damaged <gen>' with whatever trigger you are using to handle damage. In this trigger you can get the amount of damage taken as a Real number using the function 'Event Response - Damage Taken'. If the damage was done by a unit or building, this unit will be 'Event Response - Damage Source'.
 

inevit4ble

Well-Known Member
Reaction score
38
There's a damage detection system for gui in the resource section. I'm on my phone otherwise I would link it
 
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