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:
parent
1b318433a2
commit
9479c29b42
@ -135,8 +135,12 @@ if (_consumeItems > 0) then {
|
||||
private _callbackProgress = getText (_config >> "callbackProgress");
|
||||
if (_callbackProgress == "") then {
|
||||
_callbackProgress = {
|
||||
(_this select 0) params ["", "_target"];
|
||||
(alive _target) && {(abs speed _target) < 1} // make sure vehicle doesn't drive off
|
||||
(_this select 0) params ["_caller", "_target", "", "", "", "", "_claimObjectsAvailable"];
|
||||
(
|
||||
(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 {
|
||||
if (isNil _callbackProgress) then {
|
||||
|
Loading…
Reference in New Issue
Block a user