Jump to content
Sign in to follow this  
nzdfcrash

Altitude related user action issue

Recommended Posts

Hi once again...

I have come across yet another issue with a C-27 I am working on where the Lower/Raise Ramp User Action seems to be linked to roughly 20 altitude and once that altitude has been surpassed the user actions vanish. Have tried using proven code from a working ramp on one of the older hercs i have in my possession to no avail and am hoping someone will have a quick solution to this issue.

CfgSkeleton if its of any use...

class CfgSkeletons 
{
class Default
{
	isDiscrete = 1;
	skeletonInherit = "";
	skeletonBones[] = {};
};
class Vehicle : Default {};
class Plane: Vehicle {};

class anzac_fixed_wing_medium_lift_au_c27j: Plane 
{
	isDiscrete = 1;
	skeletonInherit = "";
	skeletonBones[] = 
	{
		//inizio da Plane
		"alt",
		"",
		"alt2",
		"",
		"mph",
		"",
		"mph2",
		"",
		"vert_speed",
		"",
		"vert_speed2",
		"",
		"nm_alt",
		"",
		"hud_alt",
		"",
		"hud_speed",
		"",
		"rpm",
		"",
		"kompas",
		"",
		"kompas2",
		"",
		"kompas5",
		"",
		"kompas6",
		"",
		"hodinova",
		"",
		"hodinova2",
		"",
		"minutova",
		"",
		"minutova2",
		"",
		"horizont_dive","",
		"horizont","horizont_dive",
		"horizont_dive2","",
		"horizont2","horizont_dive2",
		"horizont6_dive","",
		"horizont6","horizont6_dive",
		"horizont_dive5","",
		"horizont5","horizont_dive5",
		"lkh klapka",
		"",
		"pkh klapka",
		"",
		"lkd klapka",
		"",
		"pkd klapka",
		"",
		"leva smerovka",
		"",
		"leva vejskovka",
		"",
		"prava smerovka",
		"",
		"prava vejskovka",
		"",
		"ls klapka",
		"",
		"ps klapka",
		"",
		"predni kolo",
		"",
		"levy kolo",
		"",
		"pravy kolo",
		"",
		"vrtule",
		"",

		//fine da Plane
		"mdl", 
		"", 
		"mdr", 
		"", 
		"mdd", 
		"", 
		"3dhud", 
		"", 
		"gear_lock", 
		"", 
		"flaps", 
		"", 
		"fuel_L", 
		"", 
		"fuel_R", 
		"", 
		"rpm_2", 
		"", 
		"rpm_1", 
		"", 
		"mph_3", 
		"", 
		"mph_4", 
		"", 
		"vario_1", 
		"", 
		"vario_2", 
		"", 
		"mala", 
		"", 
		"velka", 
		"", 
		"alt_1", 
		"", 
		"alt_3", 
		"", 
		"compass_1", 
		"", 
		"compass_2", 
		"", 
		"compass_3", 
		"", 
		"rotor_1", 
		"", 
		"rotor_2", 
		"", 
		"flap_1_1", 
		"", 
		"flap_1_2", 
		"", 
		"flap_2_1", 
		"", 
		"flap_2_2", 
		"", 
		"elevator_1",
		"",
		"elevator_2", 
		"", 
		"aileron_1", 
		"", 
		"aileron_2", 
		"", 
		"rudder", 
		"", 
		"airbrake_1", 
		"", 
		"airbrake_2", 
		"",
		"gear_1_hatch_1_1", 
		"", 
		"gear_1_hatch_1_2", 
		"",
		"gear_1_hatch_2_1", 
		"",
		"gear_1_hatch_2_2", 
		"",
		"gear_1", 
		"", 

		"gear_1_steering",
		"gear_1", 

		"gear_1_damper",
		"gear_1_steering",

		"gear_1_stabil_2", 
		"gear_1_damper",

		"gear_1_stabil_1", 
		"gear_1_stabil_2", 

		"wheel_1", 
		"gear_1",

		"gear_2", 
		"", 
		"gear_2_stabil", 
		"gear_2",

		"wheel_2",
		"gear_2",

		"gear_3", 
		"", 
		"gear_3_stabil",
		"gear_3",

		"wheel_3",
		"gear_3", 


		"ladder",
		"",

		"pistone",
		"",
		"backdoor_1",
		"",
		"backdoor_2",
		"",
		"display_off", 
		"", 
		"eng_LU", 
		"", 
		"eng_RU",
		"",
		"damageHide",
		""
	};
};
};

CfgModels if of any use...

class CfgModels 
{
class Default
{
	sectionsInherit="";
	sections[] = {};
	skeletonName = "";
};
class Vehicle : Default {};
class Plane: Vehicle {};

class anzac_fixed_wing_medium_lift_au_c27j: Plane 
{
	skeletonName = "anzac_fixed_wing_medium_lift_au_c27j";
	sectionsInherit = "";
	sections[] = 
	{
		"vrtule staticka",
		"vrtule blur",
		"trup",
		"zbytek",
		"elektronika",
		"munice",
		"zbran",
		"vez",
		"zbytek",
		"podsvit pristroju",
		"Camo_1",
		"Camo_2",
		"Camo_3",
		"Camo_4",
		"Camo_5",
		"Camo_6",
		"clan",
		"clan_sign",
		"trup",
		"motor",
		"palivo",
		"sklo predni L",
		"damage",
		"damageHide",
		"L svetlo",
		"P svetlo"			
	};

	class Animations
	{
		//inizio da Plane

		class WatchHour: Rotation
		{
			source="clockHour";
			selection="hodinova";
			axis="osa_time";
			memory="false";
			angle1="rad -360";
		};
		class WatchHour2: WatchHour
		{
			selection="hodinova2";
			axis="osa_time2";
		};
		class WatchMinute: Rotation
		{
			source="clockMinute";
			selection="minutova";
			axis="osa_time";
			memory="false";
			angle1="rad -360";
		};
		class WatchMinute2: WatchMinute
		{
			selection="minutova2";
			axis="osa_time2";
		};

		//fine da Plane
		class Rudder: Rotation
		{
			source = "rudder";
			selection = "rudder";
			axis = "rudder_axis";
			minValue = -1;
			maxValue = 1;
			angle0 = "rad 22.9";
			angle1 = "rad -22.9";
		};
		class Elevator_1
		{
			type="rotation";
			source = "elevator";
			selection = "elevator_1";
			axis = "elevator_1_axis";
			minValue = -1.0;
			maxValue = 1.0;
			angle0 = -0.499164;
			angle1 = 0.499164;
		};
		class Elevator_2: Rotation
		{
			type = "rotation";
			source = "elevator";
			selection = "elevator_2";
			axis = "elevator_2_axis";
			minValue = -1.0;
			maxValue = 1.0;
			angle0 = 0.499164;
			angle1 = -0.499164;
		};
		class AileronL: Rotation
		{
			source = "aileron";
			selection = "aileron_1";
			axis = "aileron_1_axis";
			minValue = -1.0;
			maxValue = 1.0;
			angle0 = -0.436332;
			angle1 = 0.523599;
		};
		class AileronR: AileronL
		{
			selection = "aileron_2";
			axis = "aileron_2_axis";
			angle0 = 0.523599;
			angle1 = -0.436332;
		};
		class display_on
		{
			type="hide";
			hideValue=0.9;
			minValue=-0.5;
			maxValue=0.5;
			minPhase=-0.5;
			maxPhase=0.5;
			source="rpm";
			sourceAddress=0;
			selection="display_off";
		};
		class airbrake_1: Rotation
		{
			type="rotation";
			source="SpeedBrake";
			selection="airbrake_1";
			axis="airbrake_1_axis";
			memory=1;
			sourceAddress="clamp";
			minValue=0.000000;
			maxValue=1.000000;
			angle0=-0.000000;
			angle1=1.134464;
		};
		class airbrake_2: airbrake_1
		{
			selection="airbrake_2";
			axis="airbrake_2_axis";
			angle0=0.000000;
			angle1=-1.134464;
		};
		class Flap_1_1: Rotation
		{
			source="flap";
			selection="Flap_1_1";
			axis="Flap_1_1_axis";
			minValue = -1;
			maxValue = 1;
			angle0 = "rad +40";
			angle1 = "rad -40";
                               memory = 1;
		};
		class Flap_1_2: Flap_1_1
		{
			selection="Flap_1_2";
			axis="Flap_1_2_axis";
			minValue = -1;
			maxValue = 1;
			angle0 = "rad +40";
			angle1 = "rad -40";
		};
		class Flap_2_1: Flap_1_1
		{
			source="flap";
			selection="Flap_2_1";
			axis="Flap_2_1_axis";
			minValue = -1;
			maxValue = 1;
			angle0 = "rad -40";
			angle1 = "rad +40";
		};
		class Flap_2_2: Flap_1_1
		{
			selection="Flap_2_2";
			axis="Flap_2_2_axis";
			minValue = -1;
			maxValue = 1;
			angle0 = "rad +40";
			angle1 = "rad -40";
		};
		class Gear_1
		{
			type = "rotation";
			source = "Gear";
			selection = "Gear_1";
			axis = "Gear_1_axis";
			memory = 1;
			sourceAddress = "clamp";
			minValue = 0.0;
			maxValue = 0.6;
			angle0 = 0.0;
			angle1 = -1.7;
		};
		class gear_1_Steering
		{
			type = "rotation";
			source = "noseWheelTurn";
			selection = "gear_1_Steering";
			axis = "gear_1_damper_axis";
			memory = 1;
			sourceAddress = "clamp";
			minValue = -1.0;
			maxValue = 1.0;
			angle0 = -0.349066;
			angle1 = 0.349066;
		};
		class gear_1_hatch_1_1: Gear_1
		{
			type = "rotation";
			animPeriod = 8;
			selection = "gear_1_hatch_1_1";
			axis = "gear_1_hatch_1_1_axis";
			source = "gear";
			minValue = 0;
			maxValue = 1;
			angle0 = -1.65;
			angle1 = 0;
		};
		class gear_1_hatch_1_2: Gear_1
		{
			type = "rotation";
			animPeriod = 8;
			selection = "gear_1_hatch_1_2";
			axis = "gear_1_hatch_1_2_axis";
			source = "gear";
			minValue = 0;
			maxValue = 1;
			angle0 = -1.65;
			angle1 = 0;
		};
		class gear_1_hatch_2_1: Gear_1
		{
			type = "rotation";
			animPeriod = 8;
			selection = "gear_1_hatch_2_1";
			axis = "gear_1_hatch_2_1_axis";
			source = "gear";
			minValue = 0;
			maxValue = 1;
			angle0 = -1.65;
			angle1 = 0;
		};
		class gear_1_hatch_2_2: Gear_1
		{
			type = "rotation";
			animPeriod = 8;
			selection = "gear_1_hatch_2_2";
			axis = "gear_1_hatch_2_2_axis";
			source = "gear";
			minValue = 0;
			maxValue = 1;
			angle0 = 1.65;
			angle1 = 0;
		};
		class gear_1_piston_2: Gear_1
		{
			selection = "gear_1_piston_2";
			axis = "gear_1_piston_2_axis";
			minValue = 0.0;
			maxValue = 0.57;
			angle0 = 0.0;
			angle1 = 1.05592;
		};
		class gear_1_piston_1: Gear_1
		{
			selection = "gear_1_piston_1";
			axis = "gear_1_piston_1_axis";
			minValue = 0.1;
			maxValue = 0.6;
			angle0 = 0.0;
			angle1 = -0.418879;
		};
		class gear_1_damper
		{
			type = "translation";
			source = "altRadar";
			selection = "gear_1_damper";
			axis = "gear_1_damper_axis";
			memory = 1;
			sourceAddress = "clamp";

			offset0 = 0.0;
			offset1 = -0.25;

			minValue = 0;
			maxValue = 0.5;
			angle0 = 0.0;
			angle1 = -0.196706;
		};
		class gear_1_stabil_1
		{
			type = "rotation";
			source = "altRadar";
			selection = "gear_1_stabil_1";
			axis = "gear_1_stabil_1_axis";
			memory = 1;
			sourceAddress = "clamp";
			minValue = 0.0;
			maxValue = 1.0;
			angle0 = 0.0;
			angle1 = 0.261799;
		};
		class gear_1_stabil_2: gear_1_stabil_1 
		{
			selection = "gear_1_stabil_2";
			axis = "gear_1_stabil_2_axis";
			angle0 = 0.0;
			angle1 = -0.261799;
		};
		class Gear_2
		{
			type = "rotationX";
			source = "Gear";
			selection = "Gear_2";
			axis = "Gear_2_axis";
			memory = 1;
			sourceAddress = "clamp";
			minValue = 0.0;
			maxValue = 1.0;
			angle0 = 0.0;
			angle1 = -0.5;
		};
		class Gear_2_damper
		{
			type = "rotationX";
			source = "altRadar";
			selection = "Gear_2_stabil";
			axis = "Gear_2_damper_axis";
			memory = 1;
			sourceAddress = "clamp";

			offset0 = 0.15;
			offset1 = 0;

			minValue = 0;
			maxValue = 0.5;
			angle0 = 0.0;
			angle1 = -0.196706;
		};
		class Gear_3 {
			type = "rotationX";
			source = "Gear";
			selection = "Gear_3";
			axis = "Gear_3_axis";
			memory = 1;
			sourceAddress = "clamp";
			minValue = 0.0;
			maxValue = 1.0;
			angle0 = 0.0;
			angle1 = -0.5;
		};
		class Gear_3_damper
		{
			type = "rotationX";
			source = "altRadar";
			selection = "Gear_3_stabil";
			axis = "Gear_3_damper_axis";
			memory = 1;
			sourceAddress = "clamp";

			offset0 = -0.15;
			offset1 = 0;

			minValue = 0;
			maxValue = 0.5;
			angle0 = 0.0;
			angle1 = -0.196706;
		};
		class Wheel_1
		{
			type = "rotationX";
			source = "wheel";
			selection = "wheel_1";
			axis = "";
			memory = 1;
			sourceAddress = "loop";
			minValue = 0.0;
			maxValue = 1.0;
			angle0 = 0.0;
			angle1 = -3.14159;
		};
		class Wheel_2: Wheel_1
		{
			selection = "wheel_2";
			axis = "";
		};
		class Wheel_3: Wheel_1
		{
			selection = "wheel_3";
			axis = "";
		};
		class damageHide
		{
			type = "hide";
			source = "damage";
			selection = "damageHide";
		};
		class HideGear_1: damageHide
		{
			selection = "Gear_1";
		};
		class HideGear_1_damper: damageHide
		{
			selection = "gear_1_damper";
		};
		class HideGear_1_hatch_1_1 : damageHide
		{
			selection = "gear_1_hatch_1_1";
		};
		class HideGear_1_hatch_1_2 : damageHide
		{
			selection = "gear_1_hatch_1_2";
		};
		class HideGear_1_hatch_2_1 : damageHide
		{
			selection = "gear_1_hatch_2_1";
		};
		class HideGear_1_hatch_2_2: damageHide
		{
			selection = "gear_1_hatch_2_2";
		};
		class HideGear_1_stabil_1: damageHide
		{
			selection = "gear_1_stabil_1";
		};
		class HideGear_1_stabil_2: damageHide
		{
			selection = "gear_1_stabil_2";
		};
		class HideGear_1_Steering: damageHide
		{
			selection = "gear_1_Steering";
		};
		class HideGear_2: damageHide
		{
			selection = "gear_2";
		};
		class HideGear_2_damper: damageHide
		{
			selection = "gear_2_stabil";
		};
		class HideGear_3: damageHide
		{
			selection = "gear_3";
		};
		class Hidegear_3_damper: damageHide
		{
			selection = "gear_3_stabil";
		};
		class Ladder: Rotation
		{
			source="cabin";
			selection="ladder";
			axis="ladder_axis";
			angle0="Rad 135";
			animPeriod = 6;
			angle1="0";
			maxValue=1;
		};
		class IndicatorAltBaro: Rotation
		{
			source = "altBaro";
			sourceAddress = "loop";
			selection = "alt";
			axis = "osa_alt";
			memory = 0;
			maxValue = 304;
			angle1 = "rad -360";
		};
		class IndicatorAltBaro2: IndicatorAltBaro
		{
			selection = "alt2";
			axis = "osa_alt2";
		};
		class IndicatorAltRadar: Rotation
		{
			source = "altRadar";
			selection = "nm_alt";
			axis = "osa_nm_alt";
			memory = "false";
			maxValue = 61;
			angle1 = "rad -180";
		};
		class IndicatorAltRadar2: IndicatorAltRadar
		{
			selection = "nm_alt2";
			axis = "osa_nm_alt2";
		};
		class IndicatorSpeed: Rotation
		{
			source = "speed";
			selection = "mph";
			axis = "osa_mph";
			memory = "false";
			maxValue = 125;
			angle1 = "rad -320";
		};
		class IndicatorSpeed2: IndicatorSpeed
		{
			selection = "mph2";
			axis = "osa_mph2";
		};
		class IndicatorSpeed3: IndicatorSpeed
		{
			selection = "mph3";
			axis = "osa_mph3";
		};
		class IndicatorSpeed4: IndicatorSpeed
		{
			selection = "mph4";
			axis = "osa_mph4";
		};
		class IndicatorVertSpeed: Rotation
		{
			source = "vertSpeed";
			selection = "vert_speed";
			axis = "osa_vert_speed";
			minValue = -30;
			maxValue = 30;
			angle1 = "rad -300";
		};
		class IndicatorVertSpeed2: IndicatorVertSpeed
		{
			selection = "vert_speed2";
			axis = "osa_vert_speed2";
		};
		class IndicatorRPM: Rotation
		{
			source = "rpm";
			selection = "rpm";
			axis = "osa_rpm";
			memory = "false";
			maxValue = 12;
			angle1 = "rad -320";
		};
		class IndicatorRPM2: IndicatorRPM
		{
			selection = "rpm2";
			axis = "osa_rpm2";
		};
		class IndicatorCompass
		{
			type="rotationZ";
			angle0=0;
			angle1=6.283185;
			axis="osa_kompas";
			memory=0;
			minValue=-3.141593;
			maxValue=3.141593;
			minPhase=-3.141593;
			maxPhase=3.141593;
			source="direction";
			sourceAddress=0;
			selection="kompas";
		};
		class IndicatorCompass2
		{
			type="rotationZ";
			angle0=0;
			angle1=6.283185;
			axis="osa_kompas2";
			memory=0;
			minValue=-3.141593;
			maxValue=3.141593;
			minPhase=-3.141593;
			maxPhase=3.141593;
			source="direction";
			sourceAddress=0;
			selection="kompas2";
		};
		class IndicatorCompass5
		{
			type="rotationZ";
			angle0=0;
			angle1=6.283185;
			axis="osa_kompas5";
			memory=0;
			minValue=-3.141593;
			maxValue=3.141593;
			minPhase=-3.141593;
			maxPhase=3.141593;
			source="direction";
			sourceAddress=0;
			selection="kompas5";
		};
		class IndicatorCompass6
		{
			type="rotationZ";
			angle0=0;
			angle1=6.283185;
			axis="osa_kompas6";
			memory=0;
			minValue=-3.141593;
			maxValue=3.141593;
			minPhase=-3.141593;
			maxPhase=3.141593;
			source="direction";
			sourceAddress=0;
			selection="kompas6";
		};
		class IndicatorCompass3
		{
			type="rotationZ";
			angle0=0;
			angle1=6.283185;
			axis="osa_kompas3";
			memory=0;
			minValue=-3.141593;
			maxValue=3.141593;
			minPhase=-3.141593;
			maxPhase=3.141593;
			source="direction";
			sourceAddress=0;
			selection="kompas3";
		};
		class HorizonBank
		{
			type="rotationZ";
			angle0=-6.283185;
			angle1=6.283185;
			axis="osa_horizont";
			memory=0;
			minValue=-6.283185;
			maxValue=6.283185;
			minPhase=-6.283185;
			maxPhase=6.283185;
			source="horizonBank";
			sourceAddress=0;
			selection="horizont";
		};
		class HorizonDive
		{
			type="rotationX";
			angle0=-0.314159;
			angle1=0.314159;
			axis="osa_horizont";
			memory=0;
			minValue=-6.28319;
			maxValue=6.28319;
			minPhase=-6.28319;
			maxPhase=6.28319;
			source="horizonDive";
			sourceAddress=0;
			selection="horizont";
		};
		class Horizon2Bank
		{
			type="rotationZ";
			angle0=-6.283185;
			angle1=6.283185;
			axis="osa_horizont2";
			memory=0;
			minValue=-6.283185;
			maxValue=6.283185;
			minPhase=-6.283185;
			maxPhase=6.283185;
			source="horizonBank";
			sourceAddress=0;
			selection="horizont2";
		};
		class Horizon6Bank
		{
			type="rotationZ";
			angle0=-6.283185;
			angle1=6.283185;
			axis="osa_horizont6";
			memory=0;
			minValue=-6.283185;
			maxValue=6.283185;
			minPhase=-6.283185;
			maxPhase=6.283185;
			source="horizonBank";
			sourceAddress=0;
			selection="horizont6";
		};
		class Horizon6Dive
		{
			type="rotationX";
			angle0=-0.314159;
			angle1=0.314159;
			axis="osa_horizont6";
			memory=0;
			minValue=-6.28319;
			maxValue=6.28319;
			minPhase=-6.28319;
			maxPhase=6.28319;
			source="horizonDive";
			sourceAddress=0;
			selection="horizont6";
		};
		class Horizon5Bank
		{
			type="rotationZ";
			angle0=-6.283185;
			angle1=6.283185;
			axis="osa_horizont5";
			memory=0;
			minValue=-6.283185;
			maxValue=6.283185;
			minPhase=-6.283185;
			maxPhase=6.283185;
			source="horizonBank";
			sourceAddress=0;
			selection="horizont5";
		};
		class eng_RU
		{
			memory = 1;
			type = "rotation";
			source = "elevator";
			selection = "eng_RU";
			axis = "axis_eng_RU";
			minValue = -1;
			maxValue = 1;
			angle0 = "rad -10";
			angle1 = "rad +10";
		};
		class eng_LU: eng_RU
		{
			selection = "eng_LU";
			axis = "axis_eng_LU";
		};
		class Pistone
		{
			type="translation";
			source="Pistone_source";
			selection="pistone";
			begin = "pistone_begin";
			end = "pistone_end";
			minValue = 0;
			maxValue = 1;
			offset0 = 0.0;
			offset1 = 0.8;
		};
		class BackDoor_1
		{
			type="rotation";
			angle0=0.8;
			angle1=0;
			axis="backdoor1_axis";
			memory=1;
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			source="BackDoor_1_source";
			sourceAddress=0;
			selection="backdoor_1";
		};
		class BackDoor_2
		{
			type="rotation";
			angle0=0;
			angle1=0.3;
			axis="backdoor2_axis";
			memory=1;
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			source="BackDoor_2_source";
			sourceAddress=0;
			selection="backdoor_2";
		};
		class velka_vrtule_damage: damageHide
		{
			selection = "velka vrtule";
		};
		class rotorShaft_damage: damageHide
		{
			selection = "rotorShaft";
		};
		class RotorR: Rotation
		{
			type="rotation";
			source="rotor";
			sourceAddress=0;
			selection="rotor_1";
			axis="rotor_1_axis";
			memory=1;
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			angle0=0;
			angle1=6.283185;
		};
		class RotorL: Rotation
		{
			type="rotation";
			source="rotor";
			sourceAddress=0;
			selection="rotor_2";
			axis="rotor_2_axis";
			memory=1;
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			angle0=0;
			angle1=-6.283185;
		};
	};
};
class anzac_fixed_wing_medium_lift_nz_c27j: anzac_fixed_wing_medium_lift_au_c27j {};
};

Oh and before i forget the user action :)

		class AnimationSources {

		class Pistone_source {
			source = "user";
			animPeriod = 2.500000;
		};

		class Pedane_source: Pistone_source {
		};

		class BackDoor_1_source: Pistone_source {
		};

		class BackDoor_2_source: Pistone_source {
		};
	};

	class UserActions
	{
		class OpenDoor
		{
			displayName="Open Ramp";
			position="pilotcontrol";
			radius=10;
			condition="this animationPhase ""BackDoor_1"" < 0.4&&(getPos this) select 2 < 10;";
			statement="this animate [""BackDoor_1"", 1];this animate [""BackDoor_2"", 1]";
			onlyforplayer = true;
		};
		class CloseDoor
		{
			displayName="Close Ramp";
			position="pilotcontrol";
			radius=10;
			condition="this animationPhase ""BackDoor_1"" >= 0.40";
			statement="this animate [""BackDoor_1"", 0];this animate [""BackDoor_2"", 0]";
			onlyforplayer = true;	
		};
	};

Thanks in advance for looking this through, hopefully its a simple solution to a somewhat irritating issue. Also this may need to be moved depending what the issue actually is not sure if model or config as of this moment.

Edited by NZDF CRASH

Share this post


Link to post
Share on other sites

Yep just added to the first post, forgot to add the code in the post as its a key component of the question funnily enough lol FPDR

Edited by NZDF CRASH
sleep deprivation

Share this post


Link to post
Share on other sites
&&(getPos this) select 2 < 10

This condition is getting the x,y,z position array of the unit, and if the z component (the last out of three positions in the array: 0,1,2) and if it is less than 10, and the other condition is satisfied, you can open the ramp.

Moving to configs & scripting.

Edited by Max Power

Share this post


Link to post
Share on other sites

I've tinkered abit with it since yet once i reach 20 + altitude I loose the user option for the Ramp.

			class OpenDoor
		{
			displayName="Open Ramp";
			position="pilotcontrol";
			radius=10;
			condition="this animationPhase ""BackDoor_1"" < 0.4&&(getPos this) select 2 < 10;";
			statement="this animate [""BackDoor_1"", 1];this animate [""BackDoor_2"", 1]";
			onlyforplayer = true;
		};
		class CloseDoor
		{
			displayName="Close Ramp";
			position="pilotcontrol";
			radius=10;
			condition="this animationPhase ""BackDoor_1"" >= 0.40";
			statement="this animate [""BackDoor_1"", 0];this animate [""BackDoor_2"", 0]";
			onlyforplayer = true;	

Share this post


Link to post
Share on other sites

What I was getting at is, if you remove &&(getPos this) select 2 < 10; then you won't have the altitude condition anymore. :p

Share this post


Link to post
Share on other sites

Thanks Max will blame not getting it first time round on lack of sleep :)

Share this post


Link to post
Share on other sites

If you have Roadway lod on ramp IIRC it can give false altitude reading in aircraft as the roadway is always 0 altitude .

solution was to use hide animation so roadway Lod ( simply name the whole roadway LOD and add hide animation in model.cfg and hide using your useraction in cpp) is Hidden when Ramp is in up position and un hide when in down position .

I havent used Amra2 for sometime maybe this is not case anymore but i put here for your reference and hope it help but not confuse :).

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  

×