Page MenuHomeFeedback Tracker

"Deleted" event handler is being called when a unit enters a vehicle
Closed, ResolvedPublic

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.Jun 26 2019, 12:27 AM
Astaroth added a subscriber: Astaroth.

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

Thank you, it's fixed in the dev branch now, you can close the ticket

Fixed: Deleted EH would trigger when a unit enters a vehicle
https://forums.bohemia.net/forums/topic/140837-development-branch-changelog/?page=55&tab=comments#comment-3371000

@Astaroth it's resolved. Ticket can be closed.

Astaroth closed this task as Resolved.Sep 4 2019, 3:51 PM
Groove_C removed a subscriber: Groove_C.Sep 4 2019, 5:24 PM