• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Detect Damage event

Status
Not open for further replies.
I think the generic GUI event is missing still, but it is available.

call TriggerRegisterAnyUnitEventBJ( myTrigger, EVENT_PLAYER_UNIT_DAMAGING )
GetTriggerUnit() for who was damaged
GetEventDamageSource() for who did the damage

Using a DDS is still advisable.
 
Use the generic unit event that was added in 1.31.

Anyone claiming it does not exist either is using GUI, or is using a pirated version of Warcraft III so have not updated to 1.31.

1.31 added generic player events for taking damage as well as a new event which fires before damage is reduced by armor allowing the damage to be modified directly. However it did not added either events to GUI, meaning one has to use JASS/Lua directly to use them. If you can only use GUI then use a recently updated damage detection system and let that handle all the custom script work.

Do note that the community may stop calling these "DDS" seeing how they are not Direct Draw Surface textures which Warcraft III Reforged uses.
 
Yes, I use GUI. I should probably learn Jass sometime, but I am just too lazy I guess. :d Also I don't really see why they didn't add it to GUI too. It already exists for specific so why not for generic.
 
Status
Not open for further replies.
Back
Top