• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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