Skip to content

Commit e236ce1

Browse files
committed
Added/Fixed mission dialogue not working in FOB deployment
Fixed mission dialogue such that if FOB cannot be deployed due to nearby enemies, dialogue will now be shown. Added extra mission dialogue to intuitively show how many enemies are remaining inside the deployment zone.
1 parent 1290a08 commit e236ce1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/support/fob.sqf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ deleteVehicle _trg;
3838

3939
if (_amountOPFOR > 0) exitWith {
4040
Hint "This position is not clear from enemies";
41-
PAPABEAR sidechat "Request denied. Enemies are too close to this position.";
41+
[west, "PAPA_BEAR"] sidechat format["Request denied. Enemies are too close to this position. We approximate %1 enemy unit(s) nearby!", _amountOPFOR];
4242
sleep 15;
43-
_art = [player1,"fob_support"] call BIS_fnc_addCommMenuItem;
43+
_art = [player,"fob_support"] call BIS_fnc_addCommMenuItem;
4444
};
4545

4646
// Attempt to find a safe position
4747
_foundPickupPos = [_position, 0,50,10,0,0.2,0,[],[[0,0],[0,0]]] call BIS_fnc_findSafePos; // find a valid pos
4848
if (0 == _foundPickupPos select 0 && 0 == _foundPickupPos select 1) exitWith {
4949
hint "No valid FOB pos nearby\nTry to go near a flat, object free zone.";
5050
sleep 5;
51-
_art = [player1,"fob_support"] call BIS_fnc_addCommMenuItem;
51+
_art = [player,"fob_support"] call BIS_fnc_addCommMenuItem;
5252
};
5353

5454

@@ -126,4 +126,4 @@ publicVariable "Array_of_FOBname";
126126
saveGame;
127127

128128
sleep 600;
129-
_art = [player1,"fob_support"] call BIS_fnc_addCommMenuItem;
129+
_art = [player,"fob_support"] call BIS_fnc_addCommMenuItem;

0 commit comments

Comments
 (0)