Skip to content

Commit

Permalink
Merge pull request #16 from Apricot-ale/v0.96.8apr
Browse files Browse the repository at this point in the history
Fix hostage capture when cuffed
  • Loading branch information
Apricot-ale authored Jun 24, 2024
2 parents a3cd914 + a9cddd0 commit 78693bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Missionframework/scripts/server/ai/prisonner_ai.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ if ((side group _unit == KPLIB_side_enemy) && (_unit isKindOf "CAManBase") && (a

if (alive _unit) then {
private _CapturedPlayer = _unit getVariable ["KPLIB_prisonner_whois", objNull];
if (_CapturedPlayer == objNull) then {
if (isNull _capturedPlayer) then {
private _players = allPlayers;
private _nearestPlayer = objNull;
private _nearestPlayer = player;
private _minDistance = 100;
{
private _distance = _unit distance _x;
Expand Down

0 comments on commit 78693bb

Please sign in to comment.