mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Delete canCreate function
This commit is contained in:
parent
7568c6fa27
commit
b8ab9b161c
@ -5,7 +5,6 @@ PREP(bi_moduleCurator);
|
||||
PREP(bi_moduleMine);
|
||||
PREP(bi_moduleProjectile);
|
||||
PREP(bi_moduleRemoteControl);
|
||||
PREP(canCreateZeus);
|
||||
PREP(getModuleDestination);
|
||||
PREP(handleZeusUnitAssigned);
|
||||
PREP(moduleAddArsenal);
|
||||
|
@ -90,7 +90,12 @@ if (hasInterface) then {
|
||||
[QGVAR(createZeus), ACE_player] call CBA_fnc_serverEvent;
|
||||
},
|
||||
{
|
||||
call FUNC(canCreateZeus)
|
||||
switch (GVAR(canCreateZeus)) do {
|
||||
case CAN_CREATE_ADMIN: {isServer || {IS_ADMIN_LOGGED}};
|
||||
case CAN_CREATE_CONSOLE: {call BIS_fnc_isDebugConsoleAllowed};
|
||||
case CAN_CREATE_ALL: {true};
|
||||
default {false};
|
||||
}
|
||||
&& {isNil QGVAR(zeus)}
|
||||
}
|
||||
] call EFUNC(interact_menu,createAction);
|
||||
|
@ -1,23 +0,0 @@
|
||||
/*
|
||||
* Author: Dystopian
|
||||
* Check if zeus can be created.
|
||||
*
|
||||
* Arguments:
|
||||
* None
|
||||
*
|
||||
* Return Value:
|
||||
* Can create zeus
|
||||
*
|
||||
* Example:
|
||||
* call ace_zeus_fnc_canCreateZeus
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
|
||||
switch (GVAR(canCreateZeus)) do {
|
||||
case CAN_CREATE_ADMIN: {isServer || {IS_ADMIN_LOGGED}};
|
||||
case CAN_CREATE_CONSOLE: {call BIS_fnc_isDebugConsoleAllowed};
|
||||
case CAN_CREATE_ALL: {true};
|
||||
default {false};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user