summaryrefslogtreecommitdiffstats
path: root/Common/Functions/Common_GetSideFromID.sqf
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Common/Functions/Common_GetSideFromID.sqf7
1 files changed, 7 insertions, 0 deletions
diff --git a/Common/Functions/Common_GetSideFromID.sqf b/Common/Functions/Common_GetSideFromID.sqf
new file mode 100644
index 0000000..3d549b7
--- /dev/null
+++ b/Common/Functions/Common_GetSideFromID.sqf
@@ -0,0 +1,7 @@
+Private["_side"];
+
+_side = Resistance;
+if (_this == EASTID) then {_side = East};
+if (_this == WESTID) then {_side = West};
+
+_side \ No newline at end of file