Jump to content

Recommended Posts

I'm working on a plane which is supposed movable gunner camera (not modeled in, just acts like one), however no matter what I've tried the camera itself doesn't move. I've tried a lot of stuff from editing to the elevation points, changing between optic classes and adding x and y rotation points in the model and animating them in the model config but nothing has worked. 

 

Turret class:

class Turrets
{
	class mainTurret: NewTurret
	{
		startEngine=0;
		isCopilot=1;
		commanding=-1;
		primary=1;
		allowTabLock=1;
		body="camerax";
		gun="cameray";
		proxyType="CPGunner";
		proxyIndex=1;
		animationSourceBody="camerax";
		animationSourceGun="cameray";
		minElev=-90;
		maxElev=+5;
		initElev=-30;
		minTurn=-360;
		maxTurn=+360;
		initTurn=0;
		maxHorizontalRotSpeed=+0.5;
		maxVerticalRotSpeed=+0.5;
		memoryPointsGetInGunner="pos_gunner";
		memoryPointsGetInGunnerDir="pos_gunner_dir";
		gunnerFireAlsoInInternalCamera=1;
		gunnerOutFireAlsoInInternalCamera=1;
		memoryPointGunnerOptics="gunnerview";
		gunnerAction="Su34_Gunner";
		gunnerUsesPilotView=1;
		gunnerInAction="Su34_Gunner";
		gunnerForceOptics=0;
		castGunnerShadow=1;
		viewGunnerShadow=1;
		turretInfoType="RscOptics_UAV_gunner";
		stabilizedInAxes=3;
		laserScanner=true;
		weapons[]=
		{
			"Laserdesignator_mounted",
			"Missile_AGM_02_Plane_CAS_01_F"
		};
		magazines[]=
		{
			"Laserbatteries",
			"6Rnd_Missile_AGM_02_F"
		};
		class OpticsIn 
		{
			class Wide
			{
				initAngleY=0;
				minAngleY=-180;
				maxAngleY=180;
				initAngleX=0;
				minAngleX=-180;
				maxAngleX=40;
				initFov=0.46599999;
				minFov=0.46599999;
				maxFov=0.46599999;
				opticsDisplayName="W";
				visionMode[]=
				{
					"Normal",
					"NVG",
					"Ti"
				};
				thermalMode[]={0,1};
				gunnerOpticsModel="\A3\drones_f\Weapons_F_Gamma\Reticle\UGV_01_Optics_Gunner_F.p3d";
			};
			class Medium: Wide
			{
				initFov=0.093000002;
				minFov=0.093000002;
				maxFov=0.093000002;
				opticsDisplayName="M";
				gunnerOpticsModel="\A3\drones_f\Weapons_F_Gamma\Reticle\UGV_01_Optics_Gunner_F.p3d";
			};	
			class Narrow: Wide
			{
				initFov=0.028999999;
				minFov=0.028999999;
				maxFov=0.028999999;
				opticsDisplayName="N";
				gunnerOpticsModel="\A3\drones_f\Weapons_F_Gamma\Reticle\UGV_01_Optics_Gunner_F.p3d";
			};
		};
	};
};

 

Model Config Camera Animations

class camerax
{
	type="rotationX";
	source="camerax";
	selection="camerax";
	axis="osa_camerax";
	memory=1; 
	sourceAddress="clamp";
	minValue="rad -360";
	maxValue="rad +360";
	angle0="rad -360";
	angle1="rad +360";
};
class cameray: camerax
{
	type="rotationY";
	source="cameray";
	selection="cameray";
	axis="osa_cameray";
};

 

Share this post


Link to post
Share on other sites

I thought plane classes didn't support "turrets", but I could be wrong.🤷‍♂️

Share this post


Link to post
Share on other sites
29 minutes ago, skyrixarma said:

it's for my helicopter 

My bad. I read the OP's post which stated they were working on a plane and assumed you were also wanting to work on a plane...

  • Haha 1

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

×