Page MenuHomeFeedback Tracker

'Deleted' Event Handler
Acknowledged, WishlistPublic

Description

Request a 'Deleted' event handler.

myvehicle addEventHandler [
'Deleted',
{

		_object = _this select 0;   // The vehicle object

}
];

VBS 3 has this, though I am not sure how it works.

https://resources.bisimulations.com/wiki/Category:VBS:_Event_Handlers#Delete

With a 'Deleted' event handler, scenario designers can reduce the number of scripts running, related to respawns and vehicles. At the moment, we have to run an evaluation thread to detect 'isNull' on the vehicle, prior to creating a new one (respawning).

'Killed' event handler does not detect all eventualities in MP sessions, where a vehicle may simply vanish (whether by human input or otherwise), yet it should be replaced.

With both a 'Killed' and 'Deleted' event handler, we could have vehicle respawn scripts without any evaluation threads.

Details

Legacy ID
4148887009
Severity
None
Resolution
Open
Reproducibility
Always
Category
Feature Request

Event Timeline

MDCCLXXVI set Category to Feature Request.Aug 20 2015, 3:38 PM
MDCCLXXVI set Reproducibility to Always.
MDCCLXXVI set Severity to None.
MDCCLXXVI set Resolution to Open.
MDCCLXXVI set Legacy ID to 4148887009.May 8 2016, 12:32 PM

Can be marked as Resolved :)