Help config (gate)

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

Moderators: Snake Man, Lone Wolf

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: 9950
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?

Return to “ArmA 2 Editing”