ladie from hell 2 Posted May 21, 2011 (edited) I have been working on some new Map Objects for the 40k mod, and I have a new objects that has .. lets say 8 doors and I Need for them to Open all at once with 1 control pos. Is this possible ?? Here is the Object: Top left is what its like when Opened Bottom right is when Closed This is what I have TRIED to do, and no go: BLAH BLAH BLAH class skyshield3: HeliH { model = "\40klpads\skyshield3.p3d"; displayName="Valkyrie skyshield3"; vehicleClass="WH40K - Landing Pads"; transportFuel=500000; destrType=2; nameSound="helipad"; mapSize=22; typicalCargo[]={}; transportAmmo=500000; transportRepair=100000; accuracy=0.200000; cost=0; armor=900; ladders[]={{"start","end"}, {"start2","end2"}, {"start3","end3"}, {"start4","end4"}}; class Animations { class door1 { type="rotation"; animPeriod=8.75; selection="door1"; axis="door1axis"; angle0=0.000000; angle1=-1.50000; }; class door2 { type="rotation"; animPeriod=8.75; selection="door2"; axis="door2axis"; angle0=0.000000; angle1=1.50000; }; class door3 { type="rotation"; animPeriod=8.75; selection="door3"; axis="door3axis"; angle0=0.000000; angle1=1.50000; }; class door4 { type="rotation"; animPeriod=8.75; selection="door4"; axis="door4axis"; angle0=0.000000; angle1=1.50000; }; class door5 { type="rotation"; animPeriod=8.75; selection="door5"; axis="door5axis"; angle0=0.000000; angle1=1.50000; }; class door6 { type="rotation"; animPeriod=8.75; selection="door6"; axis="door6axis"; angle0=0.000000; angle1=1.50000; }; class door7 { type="rotation"; animPeriod=8.75; selection="door7"; axis="door7axis"; angle0=0.000000; angle1=1.50000; }; class door8 { type="rotation"; animPeriod=8.75; selection="door8"; axis="door8axis"; angle0=0.000000; angle1=1.50000; }; }; class UserActions { class Opendoor1 { displayName="Open shields"; position="pos_doorswitch1"; radius=3.75; condition="this animationPhase ""door1"" < 0.5; this animationPhase ""door2"" < 0.5"; this animationPhase ""door3"" < 0.5"; this animationPhase ""door4"" < 0.5"; this animationPhase ""door5"" < 0.5"; this animationPhase ""door6"" < 0.5"; this animationPhase ""door7"" < 0.5"; this animationPhase ""door8"" < 0.5"; statement="this animate [""door1"", 1]; this animate [""door2"", 1]; this animate [""door3"", 1]; this animate [""door4"", 1]; this animate [""door5"", 1]; this animate [""door6"", 1]; this animate [""door7"", 1]; this animate [""door8"", 1];this say ""Whk_door"""; }; class Closedoor1 { displayName="Close shields"; position="pos_doorswitch1"; radius=3.75; condition="this animationPhase ""door1"" >= 0.5; this animationPhase ""door2"" >= 0.5"; this animationPhase ""door3"" >= 0.5"; this animationPhase ""door4"" >= 0.5"; this animationPhase ""door5"" >= 0.5"; this animationPhase ""door6"" >= 0.5"; this animationPhase ""door7"" >= 0.5"; this animationPhase ""door8"" >= 0.5"; statement="this animate [""door1"", 0]; this animate [""door2"", 0]; this animate [""door3"", 0]; this animate [""door4"", 0]; this animate [""door5"", 0]; this animate [""door6"", 0]; this animate [""door7"", 0]; this animate [""door8"", 0];this say ""Whk_door"""; }; }; }; }; I am getting this error with it: '40klpads\config.cpp/CfgVehicles/skyshield3/useraction/Opendoor1.this': 'a' encountered instead of '=' I am NO WAY a Scripter so I have no Idea what I am doing Can Anyone Help. ??? Thanks .. LFH Edited May 21, 2011 by ladie from hell added picture Share this post Link to post Share on other sites
rellikki 7 Posted May 21, 2011 (edited) I notice some unnecessary quotation marks on the conditions: this animationPhase ""door2"" < 0.5"; The colored part isn't necessary. Remove all those on your conditions, except from the very end where the config entry ends. Edited May 21, 2011 by Rellikki Share this post Link to post Share on other sites
ladie from hell 2 Posted May 21, 2011 (edited) Roger that I will give it a shot .. will get back as soon as I get it changed Thanks for the Fast Reply. LFH ---------- Post added at 07:56 AM ---------- Previous post was at 07:33 AM ---------- Yes it works .. :yay: thanks soooo much, not to get the shields to open in the right Direction .. DOOOOAH ! UP DATE: All working NOW , all shield/walls now open-close in right direction. Edited May 21, 2011 by ladie from hell Share this post Link to post Share on other sites