adds events, queue, auto-notifications, manual checks for pilots
This commit is contained in:
17
functions/respawn/fn_showReinsertQueueNotification.sqf
Normal file
17
functions/respawn/fn_showReinsertQueueNotification.sqf
Normal file
@@ -0,0 +1,17 @@
|
||||
private _par = [["Players Awaiting Reinsert", 1.2, [1,0.64,0,1]]];
|
||||
private _baseNames = (missionNamespace getVariable ["milsim_respawn_reinsertionQueue", []]) apply {_x#1};
|
||||
{
|
||||
private _baseName = _x;
|
||||
_par pushBack [format ["Location: %1", _baseName], 1, [0,1,0,1]];
|
||||
{
|
||||
_par pushBack _x;
|
||||
} forEach ((missionNamespace getVariable ["milsim_respawn_reinsertionQueue", []]) select {
|
||||
_x#1 isEqualTo _baseName
|
||||
} apply {
|
||||
[name (_x#0), 0.7, [1,1,1,1]];
|
||||
});
|
||||
} forEach _baseNames;
|
||||
|
||||
_par call CBA_fnc_notify;
|
||||
|
||||
true;
|
||||
Reference in New Issue
Block a user