mikkol 11 Posted January 25, 2015 Hey! i have retextured MSE-3 Marid, but now i would like to have "unarmed" version of it. i know that you can use "this animate["hideturret",1];" in the editor. but, how i can get "hideturret" work in config.cpp i tried this but not working. /*extern*/ class DefaultEventHandlers; class CfgPatches { class Marid_black_ML { units[] = {"Marid_Black1_ML"}; weapons[] = {}; requiredVersion[] = {"0.100000"}; requiredAddons[] = {"A3_Armor_F"}; }; }; class CfgVehicles { /*extern*/ class O_APC_Wheeled_02_rcws_F; class Marid_black_ML: O_APC_Wheeled_02_rcws_F { scope = 2; _generalMacro = "O_APC_Wheeled_02_rcws_F"; displayName = "Marid Black ML"; side = 1; crew = "B_crew_F"; faction = "BLU_F"; vehicleClass = "Armored"; condition = "(alive this)"; [color="#FF0000"] statement = "this animate (""hideturret"",1)";[/color] hiddenSelections[] = {"Camo1", "Camo2", "Camo3"}; hiddenSelectionsTextures[] = {"ML_Addons\Marid\marid1.paa", "ML_Addons\Marid\marid2.paa", "ML_Addons\Marid\marid1.paa"}; }; }; Share this post Link to post Share on other sites
lexx 1391 Posted January 25, 2015 Add the script command in an init event handler: class eventHandlers { init = "_this animate (""hideturret"",1);"; }; Share this post Link to post Share on other sites
mikkol 11 Posted January 25, 2015 (edited) Thanks! i will try that. ---------- Post added at 09:32 AM ---------- Previous post was at 09:24 AM ---------- Edit. For some reason it's not working. Is something wrong with this ? init = "_this animate (""hideturret"",1);";. i also checked this page, https://community.bistudio.com/wiki/ArmA:_Event_Handlers EDIT 2. Now it working. Needed to add class AnimationSources /*extern*/ class DefaultEventHandlers; class CfgPatches { class Marid_black_ML { units[] = {"Marid_Black1_ML"}; weapons[] = {}; requiredVersion[] = {"0.100000"}; requiredAddons[] = {"A3_Armor_F"}; }; }; class CfgVehicles { /*extern*/ class O_APC_Wheeled_02_rcws_F; class Marid_black_ML: O_APC_Wheeled_02_rcws_F { scope = 2; _generalMacro = "O_APC_Wheeled_02_rcws_F"; displayName = "Marid Black ML"; side = 1; crew = "B_crew_F"; faction = "BLU_F"; vehicleClass = "Armored"; hiddenSelections[] = {"Camo1", "Camo2", "Camo3"}; hiddenSelectionsTextures[] = {"ML_Addons\Marid\marid1.paa", "ML_Addons\Marid\marid2.paa", "ML_Addons\Marid\marid1.paa"}; class eventHandlers { init = "_this animate (""hideturret"",1);"; }; }; }; Edited January 25, 2015 by MikkoL Share this post Link to post Share on other sites
lexx 1391 Posted January 25, 2015 Can be, I didn't tested it ingame. :p Try this: init = "_this select 0 animate (""hideturret"",1);"; Share this post Link to post Share on other sites
kerozen 187 Posted November 8, 2016 I still can't get it to work.... i get an error saying " ( " is missing. I tried init = "_this animate (""hideturret"",1);"; Share this post Link to post Share on other sites
JB47394 30 Posted March 20, 2017 Square brackets _this animate ["HideTurret", 1]; Share this post Link to post Share on other sites