ladie from hell 2 Posted July 31, 2010 this is my config of my Air lock model, // some basic defines #define TEast 0 #define TWest 1 #define TGuerrila 2 #define TCivilian 3 #define TSideUnknown 4 #define TEnemy 5 #define TFriendly 6 #define TLogic 7 #define true 1 #define false 0 // type scope #define private 0 #define protected 1 #define public 2 class CfgPatches { class 40k_Spacehulk3 { units[] = {airlock_2}; weapons[] = {}; requiredVersion = 1.0; }; }; class CfgVehicles { class All{}; class Static: All{}; class Building: Static{}; class Strategic: Building{}; class Fortress1: Strategic{}; class airlock_2: Fortress1 { vehicleClass = "WH40K - Space Hulk"; scope = 2; cost = 1000; mapSize=6; armor = 5000; nameSound = "Bunker"; icon="\40k_Spacehulk3\miscstructer.jpg"; model = "\40k_Spacehulk3\airlock_2.p3d"; displayName = "airlock 2"; destrType = "DestructBuilding"; }; ///////////////////////////////////////////// animated=1; class Animations { // AirlockDoor animation Class - Slide ( slide-style) door // class door1 { type="rotation"; animPeriod=6; selection="door1"; axis="door1axis"; angle0=0.000000; angle1=-0.1000; }; class door2 { type="rotation"; animPeriod=6; selection="door2"; axis="door2axis"; angle0=0.000000; angle1=0.10000; }; class door3 { type="rotation"; animPeriod=3; selection="door3"; axis="door3axis"; angle0=0.000000; angle1=-0.05000; }; class door4 { type="rotation"; animPeriod=3; selection="door4"; axis="door4axis"; angle0=0.000000; angle1=0.05000; }; // UserActions class class UserActions { class Opendoor1 { displayName="opendoor1"; position="pos_doorswitch1"; radius=2.5; condition="this animationPhase ""door1"" < 0.5; this animationPhase ""door2"" < 0.5"; statement="this animate [""door1"", 1]; this animate [""door2"", 1]"; }; class Opendoor3 { displayName="opendoor3"; position="pos_doorswitch2"; radius=2.5; condition="this animationPhase ""door3"" < 0.5; this animationPhase ""door4"" < 0.5"; statement="this animate [""door3"", 1]; this animate [""door4"", 1]"; }; class Closedoor1 { displayName="Closedoor1"; position="pos_doorswitch1"; radius=2.5; condition="this animationPhase ""door1"" >= 0.5; this animationPhase ""door2"" >= 0.5"; statement="this animate [""door1"", 0]; this animate [""door2"", 0]"; }; class Closedoor3 { displayName="Closedoor3"; position="pos_doorswitch2"; radius=2.5; condition="this animationPhase ""door3"" >= 0.5; this animationPhase ""door4"" >= 0.5"; statement="this animate [""door3"", 0]; this animate [""door4"", 0]"; }; }; }; and this is what I get : and when I go into .. the switches do not work (the action does not come up once I get into range of switches . I used PCHQIgor model to see how the set up in O2 is done for sliding doors that have more then 1 set of left/right sliding doors . where did I go wrong ?? I doubled check my names of doors in model and in confg. Location of switches height to players in game to height of switches, the axis of said doors ... and I have PCHQIgor.pbo in my main OFP addons and it works, so I am stumped .. LFH Share this post Link to post Share on other sites
Macser_old 0 Posted July 31, 2010 Try removing the semi-colon between "destrType = "DestructBuilding"; and animated=1;.I think you're ending class airlock_2 too early. Share this post Link to post Share on other sites
ladie from hell 2 Posted August 1, 2010 (edited) thank you will try ... Edited August 1, 2010 by ladie from hell Share this post Link to post Share on other sites
Macser_old 0 Posted August 1, 2010 Sorry.I meant the curled brackets and semi-colon. Share this post Link to post Share on other sites
ladie from hell 2 Posted August 1, 2010 (edited) UP DATE: Nope .. now I am getting this error and If I try to play again , I get CTD .. LFH Edited August 1, 2010 by ladie from hell Share this post Link to post Share on other sites
Macser_old 0 Posted August 1, 2010 (edited) Ok.Did you then close the animations class with two curled brackets(braces)? class door4 { type="rotation"; animPeriod=3; selection="door4"; axis="door4axis"; angle0=0.000000; angle1=0.05000; };<<<<<<<<<<<<<<ends class door4 }; <<<<<<<<<<<<<<<<<<ends class animations If that's of no help,get a moderator to move the topic into Configs and scripting. :) Edited August 1, 2010 by Macser Share this post Link to post Share on other sites