-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from ArmaOverthrow/dev
0.7.4.0
- Loading branch information
Showing
159 changed files
with
3,559 additions
and
1,836 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
addons/overthrow_main/campaign/missions/Overthrow.Tanoa/AI/fn_NATODeployFOB.sqf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
_leader = _this; | ||
|
||
_group = group _leader; | ||
private _targetPos = _leader getVariable ["OT_targetPos",objNull]; | ||
private _veh = vehicle _leader; | ||
|
||
_near = false; | ||
|
||
{ | ||
unassignVehicle _x; | ||
}foreach(units _group); | ||
(units _group) allowGetIn false; | ||
|
||
sleep 10; | ||
if(({alive _x} count (units _group)) == 0) exitWith {}; | ||
|
||
if(!isNull _veh) then {deleteVehicle _veh}; | ||
|
||
private _fobs = server getVariable ["NATOfobs",[]]; | ||
|
||
{ | ||
_pb = _x select 0; | ||
if(_pb distance _targetPos < 500) then { | ||
_near = true; | ||
}; | ||
}foreach(_fobs); | ||
if(_near) exitWith {}; | ||
|
||
_flag = OT_flag_NATO createVehicle _targetPos; | ||
|
||
_fobs pushback [_targetPos,count units _group,[]]; | ||
server setVariable ["NATOfobs",_fobs,true]; | ||
_group call OT_fnc_initMilitaryPatrol; |
Oops, something went wrong.