mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
dont access cargo of destroyed vehicles, fix #2523
This commit is contained in:
parent
5f7c30dd7c
commit
8affae9f7a
@ -45,7 +45,7 @@ if (getNumber (configFile >> "CfgVehicles" >> _type >> QGVAR(hasCargo)) != 1) ex
|
|||||||
private ["_text", "_condition", "_statement", "_icon", "_action"];
|
private ["_text", "_condition", "_statement", "_icon", "_action"];
|
||||||
_condition = {
|
_condition = {
|
||||||
params ["_target", "_player"];
|
params ["_target", "_player"];
|
||||||
GVAR(enable) && {locked _target < 2} && {[_player, _target, []] call EFUNC(common,canInteractWith)}
|
GVAR(enable) && {locked _target < 2} && {alive _target} && {[_player, _target, []] call EFUNC(common,canInteractWith)}
|
||||||
};
|
};
|
||||||
_text = localize LSTRING(openMenu);
|
_text = localize LSTRING(openMenu);
|
||||||
_statement = {GVAR(interactionVehicle) = _target; createDialog QGVAR(menu);};
|
_statement = {GVAR(interactionVehicle) = _target; createDialog QGVAR(menu);};
|
||||||
|
Loading…
Reference in New Issue
Block a user