-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUtil.sqf
53 lines (48 loc) · 900 Bytes
/
Util.sqf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
VehicleReady = {
_veh = _this select 0;
_ready = true;
{
if (!(isNull _x)) then
{
_ready = _ready && (unitReady _x);
};
} forEach [
(commander _veh),
(gunner _veh),
(driver _veh)
];
_ready
};
AddLiteAction = {
params [
"_target",
"_name",
"_script",
"_radius",
["_params", []]
];
_extraArguments = [];
_defaultPriority = 1.5;
_defaultShowWindow = true;
_defaultHideOnUse = true;
_defaultShortcut = "";
_defaultCondition = "true";
_target addAction [
_name,
_script,
_params,
_defaultPriority,
_defaultShowWindow,
_defaultHideOnUse,
_defaultShortcut,
_defaultCondition,
_radius
];
};
HintPlayer = {
_player = _this select 0;
_message = _this select 1;
if (name _player == name player) then {
hint _message;
};
};