mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Use LINKFUNC
This commit is contained in:
parent
a69b5b4036
commit
942879a91e
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user