Dear community,
I am trying to make an Arma 3 vanilla object load- and draggable via ACE3. For this purpose, I wrote a new config.cpp which doesn't work properly. For example, the new object ist not existing in the game (isNull). The config I used is down below.
class CfgPatches
{
class moebius_at_barrier
{
name = "AntiTank Barrier";
author = "Moebius";
requiredVersion=0.1;
requiredAddons[]= {"A3_Structures_F_Tank_Military","ace_main"};
units[]= {"MOE_half_at_barrier"};
weapons[]={};
};
};
class CfgVehicles
{
class ThingX;
class MOE_half_at_barrier : ThingX
{
author ="Moebius";
mapSize=1.46;
editorPreview="\A3\EditorPreviews_F_Tank\Data\CfgVehicles\Land_ConcreteHedgehog_01_half_F.jpg";
scope=2;
scopeCurator=2;
displayName="$STR_A3_CfgVehicles_Land_ConcreteHedgehog_01_half_F0";
model="\A3\Structures_F_Tank\Military\Fortifications\ConcreteHedgehog_01_half_F.p3d";
icon="iconObject_1x1";
destrType="DestructNo";
editorCategory="EdCat_Structures_Tanoa";
editorSubcategory="EdSubcat_Military";
//ACE values
ace_dragging_canDrag = 1; // Can be dragged (0-no, 1-yes)
ace_dragging_dragPosition[] = {0, 1.2, 0}; // Offset of the model from the body while dragging (same as attachTo)
ace_dragging_dragDirection = 0;
ace_cargo_space = 4; // Cargo space your vehicle has
ace_cargo_hasCargo = 1; // Enables cargo to be loaded inside the vehicle (1-yes, 0-no)
};
};
THANKS in advance!