Here is the the config for the small addon (gate), not work for me.
Picture shows broblem
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]";
};
};
};
};
Help config (gate)
Moderators: Lone Wolf, Snake Man
-
- Commander-In-Chief
- Posts: 9351
- 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)
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."
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."
Who is online
Users browsing this forum: No registered users and 17 guests