Skip to content

Commit

Permalink
fix delay of _restingPlace
Browse files Browse the repository at this point in the history
  • Loading branch information
Vdauphin committed Nov 16, 2024
1 parent 2ae1eca commit 2db9e77
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/massacre.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,15 @@ for "_i" from 1 to (2 + round random 3) do {
_thisArgs deleteAt (_thisArgs find _patient);
private _taskID = _patient getVariable ["btc_rep_playerKiller", ""];
if (_isGrave) then {
private _church = nearestTerrainObjects [_restingPlace, ["CHURCH", "CHAPEL"], 50];
if (_church isEqualTo []) then {
[_taskID, "FAILED"] call BIS_fnc_taskSetState;
} else {
[_taskID, "SUCCEEDED"] call BIS_fnc_taskSetState;
};
[{
params ["_restingPlace", "_taskID"];
private _church = nearestTerrainObjects [_restingPlace, ["CHURCH", "CHAPEL"], 50];
if (_church isEqualTo []) then {
[_taskID, "FAILED"] call BIS_fnc_taskSetState;
} else {
[_taskID, "SUCCEEDED"] call BIS_fnc_taskSetState;
};
}, [_bodyBag, _taskID], 0.2] call CBA_fnc_waitAndExecute;
} else {
_thisArgs pushBack _bodyBag;
[_taskID, _bodyBag] call BIS_fnc_taskSetDestination;
Expand Down

0 comments on commit 2db9e77

Please sign in to comment.