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}
Description
Description
Details
Details
- Legacy ID
- 4283627806
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
- Place two units in the editor (e.g. rifleman)
- 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)"];
- 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
Comment Actions
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!! :-)