summaryrefslogtreecommitdiffstats
path: root/Client/PVFunctions/AllCampsCaptured.sqf
diff options
context:
space:
mode:
authorhybrid <hybrid@hybridlabs.pro>2026-06-11 19:54:45 +0300
committerhybrid <hybrid@hybridlabs.pro>2026-06-11 19:54:45 +0300
commit68d4c9bbd80ed2e6528244569c79676b87295bd1 (patch)
tree6efd42fbf6f1281874ae0ff1f8816b01fe0c7153 /Client/PVFunctions/AllCampsCaptured.sqf
downloada2wf_takistan-68d4c9bbd80ed2e6528244569c79676b87295bd1.tar.gz
a2wf_takistan-68d4c9bbd80ed2e6528244569c79676b87295bd1.tar.bz2
a2wf_takistan-68d4c9bbd80ed2e6528244569c79676b87295bd1.zip
init
Diffstat (limited to 'Client/PVFunctions/AllCampsCaptured.sqf')
-rw-r--r--Client/PVFunctions/AllCampsCaptured.sqf20
1 files changed, 20 insertions, 0 deletions
diff --git a/Client/PVFunctions/AllCampsCaptured.sqf b/Client/PVFunctions/AllCampsCaptured.sqf
new file mode 100644
index 0000000..f11973e
--- /dev/null
+++ b/Client/PVFunctions/AllCampsCaptured.sqf
@@ -0,0 +1,20 @@
+Private ["_alertOtherSide","_camp","_camps","_count","_marker","_sideID","_town"];
+
+_town = _this Select 0;
+_sideID = _this Select 1;
+_alertOtherSide = _this Select 2;
+
+_camps = _town getVariable "camps";
+
+for [{_count = count _camps - 1},{_count >= 0},{_count = _count - 1}] do {
+ _camp = _camps select _count;
+ _marker = Format["%1Camp%2",str _town,_camps find _camp];
+
+ if (sideID == _sideID) then {
+ _marker setMarkerColorLocal ("Friendly" Call GetMarkerColoration);
+ } else {
+ if (_alertOtherSide || getMarkerColor _marker == ("Friendly" Call GetMarkerColoration)) then {
+ _marker setMarkerColorLocal ("Enemy" Call GetMarkerColoration);
+ };
+ };
+}; \ No newline at end of file