mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Repair - Fix claimed object abuse (#8460)
This commit is contained in:
@ -135,8 +135,12 @@ if (_consumeItems > 0) then {
|
|||||||
private _callbackProgress = getText (_config >> "callbackProgress");
|
private _callbackProgress = getText (_config >> "callbackProgress");
|
||||||
if (_callbackProgress == "") then {
|
if (_callbackProgress == "") then {
|
||||||
_callbackProgress = {
|
_callbackProgress = {
|
||||||
(_this select 0) params ["", "_target"];
|
(_this select 0) params ["_caller", "_target", "", "", "", "", "_claimObjectsAvailable"];
|
||||||
(alive _target) && {(abs speed _target) < 1} // make sure vehicle doesn't drive off
|
(
|
||||||
|
(alive _target) &&
|
||||||
|
{(abs speed _target) < 1} && // make sure vehicle doesn't drive off
|
||||||
|
{_claimObjectsAvailable findIf {!alive _x || {_x getVariable [QEGVAR(common,owner), objNull] isNotEqualTo _caller}} == -1} // make sure claim objects are still available
|
||||||
|
)
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
if (isNil _callbackProgress) then {
|
if (isNil _callbackProgress) then {
|
||||||
|
Reference in New Issue
Block a user