• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Getting Killer of a Destructible

Status
Not open for further replies.
Level 9
Joined
Nov 28, 2008
Messages
704
Hi, I have noticed that oddly, there is no function get get the killer of a destructible.. I sort of need it to use in this system, does anyone know whte best way to get it?

JASS:
GetKillingUnit() //does not work
GetDyingDestructable() //works for getting the dying thing, but there is no GetKillingWidget() or something to that effect.
 
Level 4
Joined
Apr 25, 2008
Messages
75
I don't use JASS but couldn't you just make the destructible a unit? Of course with no abilities and little HP. Just a suggestion off the top of my head.
 
Level 9
Joined
Nov 28, 2008
Messages
704
You dont need to use JASS, those are the equivilents of Killing Unit and Dying Destructible.

If there is no way to get the killer of a destructable, I will have to think what to do.. thanks again. Sigh.
 
Status
Not open for further replies.
Top