kerozen 187 Posted November 7, 2016 I'm trying to make a custom AFV-4 Gorgon spawn without a turret but i always get an error. This is the code i'm using: class PT_I_APC_Wheeled_gun_01: I_APC_Wheeled_03_cannon_F { _generalMacro="APC_Wheeled_03_cannon_F"; model="\A3\Armor_F_gamma\APC_Wheeled_03\APC_Wheeled_03_cannon_F.p3d"; picture="\A3\Armor_F_gamma\APC_Wheeled_03\Data\UI\apc_wheeled_03_ca.paa"; icon="\A3\Armor_F_gamma\APC_Wheeled_03\Data\UI\map_apc_wheeled_03_ca.paa"; scope=2; side=1; faction="PT_DS_Units"; editorsubcategory="motor_units_APC"; displayName="Pandur II"; preferRoads="true"; class EventHandlers { init = "_this execVM '\Test\Data\HideTurret.sqf'"; }; hiddenSelections[]= { "camo1", "camo2", "camo3", "camo4" }; hiddenSelectionsTextures[]= { "\Teste\Data\apc_wheeled_03_ext_co.paa", "\Test\Data\apc_wheeled_03_ext2_co.paa", "\Test\Data\rcws30_co.paa", "\Test\Data\apc_wheeled_03_ext_alpha_co.paa" }; typicalCargo[]= { "-" }; availableForSupportTypes[]= { "Drop", "Transport" }; }; HideTurret.sqf this animate ["HideTurret",1]; The error i get: '... "Test\Data\Hideturret.sqf" |#|this animate ["HideTurret",1];' Error undefined variable in expression: this File Test\Data\HideTurret.sqf, line 1 Can someone help me out? Share this post Link to post Share on other sites
.kju 3244 Posted November 8, 2016 this animate ["HideTurret",1]; => _this animate ["HideTurret",1]; Share this post Link to post Share on other sites
kerozen 187 Posted November 8, 2016 this animate ["HideTurret",1]; => _this animate ["HideTurret",1]; Tried that too, got an error saying: Error animate. type array, expected object Share this post Link to post Share on other sites
nightovizard 20 Posted April 9, 2017 mmm could it be possible to give the gorgon another turret then? Share this post Link to post Share on other sites