mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
39 lines
833 B
Plaintext
39 lines
833 B
Plaintext
/*
|
|
* Author: commy2
|
|
*
|
|
* Used to execute the checkPBOs module without placing the module. Don't use this together with the module.
|
|
*
|
|
* Argument:
|
|
* 0: Mode (Number)
|
|
* 0: Warn once
|
|
* 1: Warn permanently
|
|
* 2: Kick
|
|
* 1: Check all PBOs? (Boolean, optional default: "[]")
|
|
* 2: Whitelist (String, optinal default: false)
|
|
*
|
|
* Return value:
|
|
* None.
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
private ["_logic"];
|
|
|
|
_this resize 3;
|
|
|
|
PARAMS_3(_mode,_checkAll,_whitelist);
|
|
|
|
if (isNil "_checkAll") then {
|
|
_checkAll = false;
|
|
};
|
|
|
|
if (isNil "_whitelist") then {
|
|
_whitelist = "[]";
|
|
};
|
|
|
|
_logic = "Logic" createVehicleLocal [0,0,0];
|
|
_logic setVariable ["Action", _mode];
|
|
_logic setVariable ["CheckAll", _checkAll];
|
|
_logic setVariable ["Whitelist", _whitelist];
|
|
[_logic, [], true] call FUNC(moduleCheckPBOs);
|
|
deleteVehicle _logic;
|