Jump to content
Sign in to follow this  
natanbrody

Custome Made Addons Config Help

Recommended Posts

I seem to be getting errors when I use this config file.

My object is just a house with one door

class CfgPatches {

class BLG_PD {

units = {"BLGPoliceDepartment"};

weapons = {};

requiredVersion = 1.83;

requiredAddons = {""};

};

};

class CfgVehicleClasses {

class BLG_PDVehicleCLass {

displayName = "BLG";

};

};

class CfgSkeletons {

/*extern*/ class Default;

/*extern*/ class Strategic;

class BLG_PD_Bones: Strategic {

isDiscrete = 1;

skeletonInherit = "";

skeletonBones = {"Door", ""};

};

};

/*extern*/ class Rotation;

class CfgModels {

class Default {

sections = {""};

sectionsInherit = "";

};

class Strategic: Default {

};

class BLG_PD: Strategic {

sectionsInherit = "";

sections = {};

skeletonName = "BLG_PD_Bones";

class Animations {

class Door {

source = "user";

type = "rotation";

animPeriod = 2;

selection = "door";

axis = "Door_axis";

angle0 = 0;

angle1 = "+ 1.6";

};

};

};

class UserActions {

class OpenDoor {

displayName = "Open Firing Range Door";

position = "pos_door";

radius = 2;

onlyforplayer = 0;

condition = "this animationPhase "Door" < 0.5";

statement = "this animate ["Door",1]; this say "dooropen"";

};

class CloseDoor1 {

displayName = "Close Firing Range Door";

position = "pos_door";

radius = 2;

onlyforplayer = 0;

condition = "this animationPhase "Door" >= 0.5";

statement = "this animate ["Door",0]; this say "doorclose"";

};

};

};

};

Any help to fix/ giving me a better tutorial to make an addon would be great :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×