Use LINKFUNC

This commit is contained in:
johnb432 2024-06-10 10:43:30 +02:00
parent a69b5b4036
commit 942879a91e

View File

@ -53,7 +53,7 @@ GVAR(lastPlayerVehicle) = objNull;
};
if ((!isNull _vehicle) && {_player != _vehicle}) then {
private _firedEH = _vehicle addEventHandler ["FiredNear", {call FUNC(firedNear)}];
private _firedEH = _vehicle addEventHandler ["FiredNear", LINKFUNC(firedNear)];
_vehicle setVariable [QGVAR(firedEH), _firedEH];
GVAR(lastPlayerVehicle) = _vehicle;
TRACE_2("added veh eh",_firedEH,GVAR(lastPlayerVehicle));