-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
ignore the fact that I semi-doxed myself in the last commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
*/ | ||
|
||
if (!hasInterface) exitWith {}; | ||
This comment has been minimized.
Sorry, something went wrong. |
||
LOG("fnc_goAFK.sqf has started."); | ||
|
||
private _unit = player; // ToDo: replace with param & execute func on server | ||
|
||
|
@@ -38,12 +39,17 @@ if ("@ace" call FUNC(checkModPresence)) then { | |
[objNull, _unit] call ace_medical_treatment_fnc_fullHeal; | ||
}; | ||
_unit setVariable [QGVAR(isAFK), true]; | ||
MESSAGE_WITH_TITLE("player has been fully healed and set to AFK.", "/z/sia3f/addons/core/fucntions/fnc_goAFK.sqf:37-41"); | ||
This comment has been minimized.
Sorry, something went wrong.
SiegeToaster
Member
|
||
|
||
[(name _unit + " is now AFK.")] remoteExec ["systemChat"]; // "<player> is now AFK" system chat message. | ||
5 cutText ["You are now AFK\nYou may exit in " + (str TIMEOUT) + " seconds.", "PLAIN", -1, true]; | ||
MESSAGE_WITH_TITLE("5 second cutscene has completed.", "/z/sia3f/addons/core/functions/fnc_goAFK.sqf:45"); | ||
This comment has been minimized.
Sorry, something went wrong.
SiegeToaster
Member
|
||
|
||
sleep TIMEOUT; | ||
MESSAGE_WITH_TITLE("sleep TIMEOUT has completed.", "/z/sia3f/addons/core/functions/fnc_goAFK.sqf:46"); | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
if (!alive player) exitWith {}; | ||
|
||
createDialog QGVAR(goAFK); // open exit dialog | ||
|
||
INFO("fnc_goAFK.sqf fully executed."); |
in the exitWith, log that the function was not executed on a client machine. See https://github.com/Soliders-in-Arms-Arma-3-Group/sia3f/blob/main/addons/radio/functions/fnc_acreRadioSetup.sqf#L28-L30 for an example.