blob: 15c4ee7fb253727be18fcb1de2737aed2f744d71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// =========================================================================================================
// Script for adding the action of follow player.
// Version: 1.0
// Author: Monsada (smirall@hotmail.com)
// ---------------------------------------------------------------------------------------------------------
private ["_side","_soldiers"];
_side = _this select 0;
_soldiers = switch (_side) do {
case west: {KRON_AllWest};
case east: {KRON_AllEast};
case resistance: {KRON_AllRes};
};
{
if ( leader _x == _x ) then {
_x addaction ["Order your men to follow me", "scripts\UPSMON\actions\followme.sqf", [], 1, false];
} else {
_x addaction ["Follow me", "scripts\UPSMON\actions\followme.sqf", [], 1, false];
};
}foreach _soldiers;
if (true) exitWith {};
|