• 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.

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