Jump to content
Sign in to follow this  
kerozen

HideTurret in Config.cpp

Recommended Posts

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

this animate ["HideTurret",1];

=>

_this animate ["HideTurret",1];

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×