Page MenuHomeFeedback Tracker

"Deleted" event handler is being called when a unit enters a vehicle
New, NormalPublic

Description

If we add a "Deleted" event handler to a unit, it is being called when the unit enters a vehicle.
I didn't test it with all kinds of local/remote player/AI combinations, but it's surely happening if the event handler is given to a local player.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce

Place a playable infantry unit in the editor and an empty vehicle. Launch the mission.
Run this in the console:

player addEventHandler ["Deleted", {
systemChat format ["--- Deleted: %1", _this];
}];

Enter a vehicle and see the event handler being called.

Event Timeline

Sparker created this task.Wed, Jun 26, 12:27 AM
Astaroth added a subscriber: Astaroth.

Hi,
thx for the report. We will look on it.