Help config (gate)

ArmA 2 editing; configs, modeling, missions, textures, terrain etc.

Moderators: Lone Wolf, Snake Man

kheiro
Recruit
Posts: 12
Joined: 2009-11-03 08:32:51
Gaming Interests: ArmA 2 (Armed Assault 2)
Editing Interests: Missions
Location: algeria

Help config (gate)

Post by kheiro »

Here is the the config for the small addon (gate), not work for me.
Picture shows broblem
Image


class CfgPatches
{
class kkb_gate
{
units[] = {"kkb_gate"};
weapons[] = {};
requiredVersion = 1.00;
};
};
class CfgModels
{
class Default { };
class kkb_gate: Default
{
sections[]={"arm"};
sectionsInherit="";
};
};
class CfgVehicles
{
class All {};
class Static: All {};
class Building: Static {};
class NonStrategic: Building {};
class Fence: NonStrategic {};
class kkb_gate_dummy: Fence
{
accuracy=1.000;
scope=0;
vehicleClass="Objects";
model="\kkb_gate\kkb_gate.p3d";
displayName="Gate";
destrType=destructtree;
cost=100;
icon="\kkb_gate\kkb_gate.paa";

};
class kkb_gate:kkb_gate_dummy
{
Scope=2;
accuracy=1000;
displayName="KKB Gate";
animated=1;
class Animations
{
class arm
{
type="rotation";
animPeriod=3;
selection="arm";
axis="osa_arm";
angle0=0;
angle1=-1.6;
};
};
class UserActions
{
class OpenArm1
{
displayName="Open Gate";
position="osa_arm";
radius=2.5;
condition="this animationPhase ""arm"" < 0.5";
statement="this animate [""arm"", 1]";
};
class CloseArm1
{
displayName="Close Gate";
position="osa_arm";
radius=2.5;
condition="this animationPhase ""arm"" >= 0.5";
statement="this animate [""arm"", 0]";
};
};
};
};
Snake Man
Commander-In-Chief
Posts: 9833
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC

Re: Help config (gate)

Post by Snake Man »

CfgModels need to be in model.cfg but for this to have any effect you also must have the MLOD of the object, do you got it?
PMC TACTICAL FORUM AND OTHER WEBSITES GO DOWN SEPTEMBER 13TH 2025 IF WEB HOSTING YEARLY FEES ARE NOT PAID.

IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.

Support PMC

Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".

Return to “ArmA 2 Editing”