mcfck 10 Posted May 3, 2016 I try to mark doors to open they in game but it doesn`t work.My config.cpp #include "cfgPatches.hpp" class CfgVehicles { class House; class House_F: House { class DestructionEffects; }; class Ruins_F; class Ho: House_F { scope = 2; displayName = "Ho"; model = ho\hl\ho.p3d; // filepath vehicleClass = Structures; // Object in the in-game editor mapSize = 16; cost = 40000; class DestructionEffects: DestructionEffects { }; class HitPoints { }; class Damage { }; class UserActions { class open_door_1 { displayName = "Open Door"; position = "door0"; radius = 3; onlyForplayer = "false"; condition = "this animationPhase "Door_1"<0.5"; statement = "this animate ["Door_1", 1]"; }; }; }; }; Error text: Build failed. Result code= 1CfgConvert task failed.File ho\hl\config.cpp, line 37: `/CfgVehicles/Ho/UserActions/open_door_1.Door_1`:` encountered instead of `=`Config : some input after EndOfFileError reading config file ho\hl\config.cppClass destroyed with lock count 1 Share this post Link to post Share on other sites
jAMDup 2 Posted May 3, 2016 I may be wrong but it looks like you've missed out the "AnimationSources" from your config. class AnimationSources { class RampBottomRotation { source = "user"; initPhase = 0; animPeriod = 10; }; }; class UserActions { class RampBottom { displayName = "Open Bottom Ramp"; position = "ramp_bottom_actionPoint"; radius = 5; onlyForPlayer = 0; showWindow = 0; condition = "(this animationPhase ""RampBottomRotation"" > 0.9)"; statement = "this animate [""RampBottomRotation"", 0];"; }; class RampBottomClose { displayName = "Close Bottom Ramp"; position = "ramp_bottom_actionPoint"; radius = 5; onlyForPlayer = 0; condition = "(this animationPhase ""RampBottomRotation"" < 0.1)"; statement = "this animate [""RampBottomRotation"", 1];"; }; }; Above is an example of a ramp moving. Hope it helps you. Just another thing, in the "AnimationSources" make sure the class name is the same in your model.cfg "Animations" class. Share this post Link to post Share on other sites