Page MenuHomeFeedback Tracker

HandleDamage event handler has <Null-Object> as source/shooter parameter
Reviewed, WishlistPublic

Description

When shooting a unit in the head, the first event passed to the handler has <Null-Object> as the shooter/source parameter. For the remaining events (i.e. selections) the parameter has the correct value. {F21777}

Details

Legacy ID
4283627806
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. Place two units in the editor (e.g. rifleman)
  2. Add the following to the init field of the non-player unit. this addEventHandler ["handledamage", "if (isNull (_this select 3)) then { player globalchat (str _this); }; (_this select 2)"];
  1. Preview mission and shoot the unit in the head.

Notice that the shooter/source parameter is null.

Additional Information

I have only noticed the source/shooter parameter being null in the head selection.

Event Timeline

mrflay edited Steps To Reproduce. (Show Details)Aug 30 2013, 4:29 AM
mrflay edited Additional Information. (Show Details)
mrflay set Category to Scripting.
mrflay set Reproducibility to Always.
mrflay set Severity to None.
mrflay set Resolution to Open.
mrflay set Legacy ID to 4283627806.May 7 2016, 4:23 PM

Hey BI, this bug is still existing and really annoying.
Date created: 2013-08-30 04:29
Today i wondered again why the first damage event is "Null", after logging them down.

Please help us!! :-)