removed unused functions

This commit is contained in:
Niklas 2020-10-20 18:21:37 +02:00
parent ddf329073f
commit e43bd386cc
5 changed files with 0 additions and 51 deletions

View File

@ -1,43 +0,0 @@
/*
Author: Djeeberjr
Description:
Buildable barricade. If there is a object synced to it, it will use this as the "controller".
Parameter(s):
0: OBJECT - the barricade
1: STRING - barrcade group
2: NUMBER - cost
*/
params ["_obj","_group","_cost"];
_ctl = objNull;
if ((count synchronizedObjects _obj) == 1)then{
_ctl = (synchronizedObjects _obj) # 0;
}else{
//Create controller
_ctl = createVehicle ["Marker_Use_ACR", position _obj, [], 0, "CAN_COLLIDE"];
_ctl setVectorDirAndUp [vectorDir _obj, vectorUp _obj];
};
dbg = synchronizedObjects _obj;
//create action
_action = _ctl addAction ["Build barricade",{
params ["_target", "_caller", "_actionId", "_arguments"];
_obj = _arguments # 0;
_group = _arguments #1;
_cost = _arguments #2;
_target removeAction _actionId; //TODO: remoteExec
_obj hideObjectGlobal false;
deleteVehicle _target;
},[_obj,_group,_cost],2.5,true,true,"","true",2];
//Hide it
_obj hideObjectGlobal true;
_obj setVariable ["DLib_barricade",[_group,_cost,_action]];

View File

@ -1 +0,0 @@

View File

@ -1,6 +0,0 @@
class Barricade{
file="DLib\functions\Barricade";
class barricade{};
class enableBarricade{};
class disableBarricade{};
};

View File

@ -1,7 +1,6 @@
class DLib{ class DLib{
#include "Base\CfgFunctions.hpp" #include "Base\CfgFunctions.hpp"
#include "Arsenal\CfgFunctions.hpp" #include "Arsenal\CfgFunctions.hpp"
#include "Barricade\CfgFunctions.hpp"
#include "Interactables\CfgFunctions.hpp" #include "Interactables\CfgFunctions.hpp"
#include "Orbat\CfgFunctions.hpp" #include "Orbat\CfgFunctions.hpp"
#include "PlaneJump\CfgFunctions.hpp" #include "PlaneJump\CfgFunctions.hpp"