mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
24 lines
767 B
Plaintext
24 lines
767 B
Plaintext
//fnc_startBCS.sqf
|
|
#include "script_component.hpp"
|
|
disableSerialization;
|
|
|
|
PARAMS_1(_computer);
|
|
GVAR(currentComputer) = _computer;
|
|
|
|
_currentUser = GVAR(currentComputer) getVariable [QGVAR(currentUser), GVAR(currentComputer)];
|
|
if(_currentUser == GVAR(currentComputer) || _currentUser == player) then {
|
|
createDialog "ace_arty_bcs_Display";
|
|
if(_currentUser == GVAR(currentComputer)) then {
|
|
GVAR(currentComputer) setVariable [QGVAR(currentUser), player, true];
|
|
};
|
|
} else {
|
|
if(!(alive _currentUser) || !(_currentUser in GVAR(currentComputer))) then {
|
|
createDialog "ace_arty_bcs_Display";
|
|
GVAR(currentComputer) setVariable [QGVAR(currentUser), player, true];
|
|
} else {
|
|
hint format["BCS is currently in use by: %1", _currentUser];
|
|
};
|
|
};
|
|
|
|
|