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.
Description
Description
Details
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
Comment Actions
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