Help config (gate)

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

Moderators: Lone Wolf, Snake Man

Post Reply
User avatar
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 » 2010-09-20 12:11:13

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: 9338
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
Contact:

Re: Help config (gate)

Post by Snake Man » 2010-09-20 14:21:57

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 New User Registration please read new info here.

PMC since 1984

Editing knowledge, visit PMC Editing Wiki
The leading, most detailed and comprehensive modification made for the Vietnam War - Vietnam: The Experience homepage
View our videos in PMC Youtube channel

PMC Tactical forum Advanced Search is power.

"ALPHA BLACK TO PAPA BEAR. ALL RUSSIANS ARE TOAST. OVER."

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests