Jump to content
auge103

"Killed" Eventhandler returns NullObject as killed unit?

Recommended Posts

Tldr: as the Title says. Long description:

I've got a "Killed" eventhandler on several of my script-spawned units, some of them in vehicles.

I'm trying to substract scores and kills, so that the scoreboard always shows zero (to add a custom score later). This works absolutely fantastic when killing infantry.

But here's the catch: Sometimes, when killing vehicles, the EH returns me a NULL-Object as killed unit. How in the hell can the killed unit be Null if the EH itself fired fine on it? Is there any other way to somehow get the unit where the EH was attached to?

It seems to happen to some of the units inside, the vehicle itself gets returned.
(The killer and instigator get reported fine at the same time as the killed is null)

 

Am using ACE3, if that matters.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×