Search the Community
Showing results for tags 'jet'.
Found 29 results
-
Rearm script does not work on a server
WurschtBanane posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I have a trigger that had this on activation: {[_x] execVM "rearm.sqf"} foreach thislist; // Written by Weasel [PXS] - andy@andymoore.ca // This script rearms, refuels, and repairs vehicles. // Vehicles must be less than height 2 (typically landed, if air vehicles) and must remain in the // trigger area for 3 seconds. It then drains all fuel, repairs, rearms, and refuels. // // Setup a trigger area to activate this (F3 in map editor) with the following settings: // // Trigger REPEATEDLY, BLUFOR, PRESENT // Name: Rearmlist // Condition: this; // Activation: {[_x] execVM "rearm.sqf"} foreach thislist; // // Warning: If this trigger area overlaps another trigger area (such as ammo-transport Scripts), sometimes // things don't work as planned. Keep this seperate if you can. _unit = _this select 0; // Don't start the script until the unit is below a height of 2, and make sure they hold that // height for at least 3 seconds. WaitUntil{(getPos _unit select 2)<2}; sleep 3; if((getPos _unit select 2)>2) exitWith{}; WaitUntil{speed _unit < 2}; sleep 3; if(speed _unit > 5) exitWith{}; // Make sure unit is inside one of these lists (trigger areas) if( not (_unit in list rearmlist1)) exitWith{}; _unit setFuel 0; _unit VehicleChat "Repairing..."; sleep 2; _unit setDammage 0; _unit VehicleChat "Rearming..."; sleep 2; _unit setVehicleAmmo 1; _unit VehicleChat "Refueling..."; sleep 2; _unit setFuel 1; _unit VehicleChat "Finished."; if(true) exitWith{}; It works in SP but not on my dedicated server. What can i do? -
Create respawning enemy fighter jets
WurschtBanane posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi. I placed a jet and gave it waypoints etc. Now when it gets shot down i want it to respawn after 30 seconds or so. I want the AI to have a 100% skill level and have it circle close to the center of the map. Any jet will do, a random one out of the 4 would be very good though. I tried a little bit but it didnt work. And i do not want to google for five hours, did it 30 mins and found nothing which is why im asking here. Help would be appreciated! -
[] spawn { if (isServer && {isDedicated}) exitWith {}; waitUntil {!isNull player}; private "_jet"; _xEHx = player addEventhandler ["respawn", { _jet = createVehicle [selectRandom ["I_Plane_Fighter_03_AA_F", "O_Plane_CAS_02_F", "B_Plane_CAS_01_F"], getArray (configFile >> "CfgWorlds" >> worldName >> "centerPosition"), [], random 10000, "FLY"]; (_this select 0) moveInDriver _jet; }]; }; This script makes players respawn in jets. But the problem is that the jet spawns at 100m altitude and often spawns nose down and ends up crashing. Is there a way to make the plane spawn at 1000m or so so that it doesnt crash?
- 1 reply
-
- spawn
- vehicle spawn
- (and 4 more)
-
For some reason, the HUD is suddenly broken inside a fighter I'm working on. Full CfgVehicles code: class CfgVehicles { class Air; class Plane: Air { class HitPoints; }; class Plane_Base_F: Plane { class AnimationSources; class HitPoints: HitPoints { class HitHull; }; }; class PlaneWreck; class Plane_Fighter_01_base_F: Plane_Base_F { features = "Randomization: No <br />Camo selections: 1 - Body, wings, and gear <br />Script door sources: None <br />Script animations: None <br />Executed scripts: None <br />Firing from vehicles: No <br />Slingload: No <br />Cargo proxy indexes: None"; author = $STR_A3_Night515; DLC = AegisMod; mapSize = 15.5; class SimpleObject { animate[] = {}; hide[] = {}; verticalOffset = 0; }; _generalMacro = "Plane_Fighter_01_base_F"; scope = private; model = "\Air_F_Aegis\Plane_Fighter_01\Plane_Fighter_01_F.p3d"; editorSubcategory = "EdSubcat_Planes"; icon = "\Air_F_Aegis\Plane_Fighter_01\Data\UI\Map_Plane_Fighter_01_CA.paa"; picture = "\Air_F_Aegis\Plane_Fighter_01\Data\UI\Plane_Fighter_01_CA.paa"; destrType = DestructWreck; slingLoadCargoMemoryPoints[] = { "SlingLoadCargo1", "SlingLoadCargo2", "SlingLoadCargo3", "SlingLoadCargo4" }; memoryPointTaskMarker = "TaskMarker_1_pos"; armor = 80; armorStructural = 1; armorLights = 1; epeImpulseDamageCoef = 200; damageResistance = 0.01096; accuracy = 0.4; class Library { libTextDesc = $STR_A3_CfgVehicles_B_Plane_Fighter_01_F_Library0; }; driverAction = pilot_plane_fighter_01; getinAction = pilot_plane_fighter_01_Enter; getoutaction = pilot_plane_fighter_01_Exit; precisegetinout = true; viewDriverShadow = true; viewCargoShadow = true; viewDriverShadowDiff = 0.5; viewDriverShadowAmb = 0.5; LockDetectionSystem = CM_Lock_Radar; incomingMissileDetectionSystem = CM_Missile; class Turrets{}; class TransportItems{}; #include "sounds.hpp" vtol = true; altNoForce = 35000; altFullForce = 13636; maxSpeed = 1900; aileronSensitivity = 1.1; elevatorSensitivity = 0.8; rudderInfluence = 0.4; aileronControlsSensitivityCoef = 3; elevatorControlsSensitivityCoef = 4; rudderControlsSensitivityCoef = 4; elevatorCoef[] = {0.5,0.9,1.1,1.3,1.4,1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.5}; aileronCoef[] = {1,1.75,2.5,2.5,3.5,3.5,3.5,3.5,3.5,3.5,3.5,3.5,3.5,2,1,1}; rudderCoef[] = {0.6,1.0,1.0,0.9,0.8,0.7,0.6}; flapsFrictionCoef = 0.5; angleOfIndicence = 0.05235987; draconicForceXCoef = 8.0; draconicForceYCoef = 2.3; draconicForceZCoef = 1.0; draconicTorqueXCoef = 1.2; draconicTorqueYCoef = 1.0; envelope[] = {0.1,0.5,3,8,9,9,9,6.85,6.5,5.8,4.6,2.8,0}; thrustCoef[] = {1.2,1.6,2,1.9,1.8,1.7,1.6,1.5,1.4, 1.2,1.1,0.9,0.5,0.3,0,0}; acceleration = 300; landingSpeed = 250; landingAoa = "rad 10"; threat[] = {1,1,1}; irScanRangeMin = 3000; irScanRangeMax = 10000; irScanToEyeFactor = 4; laserScanner = 1; showAllTargets = 4; minFireTime = 30; headAimDown = 0.0; cabinOpening = true; brakeDistance = 150; fov = 1.5; dustEffect = HeliDust; waterEffect = HeliWater; driverLeftHandAnimName = "throttle_stick"; driverRightHandAnimName = "flight_stick"; memoryPointsGetInDriver = "GetIn_driver_pos"; memoryPointsGetInDriverDir = "GetIn_driver_dir"; memoryPointLRocket = "Rocket_1"; memoryPointRRocket = "Rocket_2"; memoryPointCM[] = { "FlareLauncher_1_pos", "FlareLauncher_2_pos" }; memoryPointCMDir[] = { "FlareLauncher_1_dir", "FlareLauncher_2_dir" }; memoryPointLDust = "WheelDust_left_pos"; memoryPointRDust = "WheelDust_right_pos"; memoryPointGun = "Usti hlavne"; gunAimDown = 0.0; selectionFireAnim = "zasleh"; gearUpTime = 3; gearDownTime = 3; driveOnComponent[] = { "wheel_1", "wheel_2", "wheel_3" }; numberPhysicalWheels = 3; wheelSteeringSensitivity = 2.5; class Exhausts { class Exhaust_1 { position = "Exhaust_1_pos"; direction = "Exhaust_1_dir"; effect = ExhaustsEffectJet; }; }; class WingVortices { class BodyLeft { effectName = BodyVortices; position = "body_vapour_L_S"; }; class BodyRight { effectName = BodyVortices; position = "body_vapour_R_S"; }; class WingTipLeft { effectName = WingVortices; position = "body_vapour_L_E"; }; class WingTipRight { effectName = WingVortices; position = "body_vapour_R_E"; }; }; class Reflectors { class Gear_1_light { color[] = {0.9,1.0,0.8}; ambient[] = {0.009,0.01,0.008}; intensity = 25000; size = 1; innerAngle = 0; outerAngle = 90; coneFadeCoef = 12; position = "Light_L"; direction = "Light_L_end"; hitpoint = ""; selection = ""; useFlare = true; flareSize = 0.5; flareMaxDistance = 30; class Attenuation { start = false; constant = false; linear = 15; quadratic = 7; hardLimitStart = 75; hardLimitEnd = 100; }; }; }; class AnimationSources: AnimationSources { class AddFalchion { source = user; animPeriod = 0.000001; initPhase = 0; weapon = Missile_AA_04_Plane_CAS_01_F; }; class AddGbu12 { source = user; animPeriod = 0.000001; initPhase = 0; weapon = GBU12BombLauncher; }; class AddZephyr { source = user; animPeriod = 0.000001; initPhase = 0; weapon = missiles_Zephyr; }; class Hatch_1_Bay { source = maxHoldsterValue; animPeriod = 0.6; initPhase = 0; }; class Hatch_2_Bay { source = maxHoldsterValue; animPeriod = 0.6; initPhase = 0; }; class Hatch_3_Bay { source = maxHoldsterValue; animPeriod = 0.6; initPhase = 0; }; class Hatch_4_Bay { source = maxHoldsterValue; animPeriod = 0.6; initPhase = 0; }; class Muzzle_flash { source = ammorandom; weapon = gatling_25mm; }; }; hiddenSelections[] = {"camo"}; hiddenSelectionsTextures[] = {"\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_ext_CO.paa"}; class HitPoints: HitPoints { class HitHull: HitHull { armor = 999; explosionShielding = 10; name = "hull_hit"; passThrough = 0.5; visual = "hull_hit"; radius = 0.01; minimalHit = 0.02; depends = "Total"; material = -1; }; class HitEngine: HitHull { armor = 1.5; explosionShielding = 2; name = "engine_hit"; passThrough = 1; visual = "engine_hit"; radius = 0.48; minimalHit = 0.1; }; class HitAvionics: HitHull { armor = 3; explosionShielding = 1; name = "avionics_hit"; passThrough = 0.2; visual = "avionics_hit"; radius = 0.3; }; class HitFuel: HitHull { armor = 3; explosionShielding = 4; name = "fuel_hit"; passThrough = 0.5; visual = "fuel_hit"; radius = 2.3; minimalHit = 0.1; }; class HitGlass1: HitHull { armor = 1.5; explosionShielding = 3; name = "glass_1"; passThrough = 0; visual = "glass_1"; radius = 0.2; minimalHit = 0.1; }; class HitGlass2: HitHull { armor = 3; explosionShielding = 4; name = "glass_2"; passThrough = 0; visual = "glass_2"; radius = 0.1; minimalHit = 0.1; }; }; class Damage { tex[] = {}; mat[] = { "\Air_F_Aegis\Plane_Fighter_01\Data\Cannon.rvmat", "\Air_F_Aegis\Plane_Fighter_01\Data\Cannon_damage.rvmat", "\Air_F_Aegis\Plane_Fighter_01\Data\Cannon_destruct.rvmat", "\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_ext.rvmat", "\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_ext_damage.rvmat", "\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_ext_destruct.rvmat", "\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_glass.rvmat", "\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_glass_damage.rvmat", "\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_glass_damage.rvmat", "\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_int_glass.rvmat", "\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_int_glass_damage.rvmat", "\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_int_glass_damage.rvmat" }; }; memoryPointDriverOptics = "PilotCamera_pos"; unitInfoType = RscOptics_CAS_01_TGP; class pilotCamera { class OpticsIn { class Wide { opticsDisplayName = "W"; initAngleX = 0; minAngleX = 0; maxAngleX = 0; initAngleY = 0; minAngleY = 0; maxAngleY = 0; initFov = "(30 / 120)"; minFov = "(30 / 120)"; maxFov = "(30 / 120)"; directionStabilized = true; visionMode[] = { Normal, Ti }; thermalMode[] = {0,1}; gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_wide_F.p3d"; opticsPPEffects[] = { OpticsCHAbera2, OpticsBlur2 }; }; class Medium: Wide { opticsDisplayName = "M"; initFov = "(15 / 120)"; minFov = "(15 / 120)"; maxFov = "(15 / 120)"; gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_medium_F.p3d"; }; class Narrow: Wide { opticsDisplayName = "N"; initFov = "(7.5 / 120)"; minFov = "(7.5 / 120)"; maxFov = "(7.5 / 120)"; gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d"; }; showMiniMapInOptics = true; showUAVViewInOptics = false; showSlingLoadManagerInOptics = false; }; minTurn = -130; maxTurn = 130; initTurn = 0; minElev = -10; maxElev = 90; initElev = 0; maxXRotSpeed = 0.3; maxYRotSpeed = 0.3; pilotOpticsShowCursor = true; controllable = true; }; class MFD { class AirplaneHUD { topLeft = "HUD_top_left"; topRight = "HUD_top_right"; bottomLeft = "HUD_bottom_left"; borderLeft = 0; borderRight = 0; borderTop = 0; borderBottom = 0; color[] = {1.0,1.0,1.0,1.0}; helmetMountedDisplay = true; helmetPosition[] = {-0.04,0.03,0.1}; helmetRight[] = {0.08,0,0}; helmetDown[] = {-0,-0.06,0}; #include "cfgHUD.hpp" }; }; class MarkerLights { class PositionRed { color[] = {0.8,0.0,0.0}; ambient[] = {0.08,0.0,0.0}; intensity = 75; name = "PositionLight_red_1_pos"; drawLight = 1; drawLightSize = 0.15; drawLightCenterSize = 0.04; activeLight = 0; blinking = 0; dayLight = 0; useFlare = 0; class Attenuation { start = 0; constant = 0; linear = 25; quadratic = 50; hardLimitStart = 0.75; hardLimitEnd = 1; }; }; class PositionGreen: PositionRed { color[] = {0.0,0.8,0.0}; ambient[] = {0.0,0.08,0.0}; name = "PositionLight_green_1_pos"; }; class CollisionWhite: PositionRed { color[] = {1.0,1.0,1.0}; ambient[] = {0.1,0.1,0.1}; name = "CollisionLight_white_1_pos"; blinking = 1; blinkingPattern[] = {0.1,0.9}; blinkingPatternGuarantee = 0; drawLightSize = 0.2; drawLightCenterSize = 0.04; }; class CollisionWhite2: CollisionWhite { name = "CollisionLight_white_2_pos"; }; }; class RenderTargets { class FLIR { renderTarget = "rendertarget0"; class CameraView1 { pointPosition = "flir_pos"; pointDirection = "flir_dir"; renderQuality = 1; renderVisionMode = 2; fov = 0.3; }; }; }; class TextureSources { class blufor { displayName = $STR_A3_TextureSources_blu0; author = $STR_A3_Night515; textures[] = {"\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_ext_CO.paa"}; }; class dazzle { displayName = $STR_A3_TextureSources_dazzle0; author = $STR_A3_Night515; textures[] = {"\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_ext_BLUFOR_CO.paa"}; }; }; }; class B_Plane_Fighter_01_CAS_F: Plane_Fighter_01_base_F { author = $STR_A3_Night515; _generalMacro = "B_Plane_Fighter_01_CAS_F"; scope = public; scopeCurator = public; displayName = "F-38 Stalker (CAS)"; side = 1; faction = BLU_F; crew = B_pilot_F; typicalCargo[] = {B_pilot_F}; weapons[] = { gatling_25mm, Missile_AA_04_Plane_CAS_01_F, GBU12BombLauncher, CMFlareLauncher }; magazines[] = { 300Rnd_25mm_shells, 2Rnd_Missile_AA_04_plane_fighter_01_F, 2Rnd_GBU12_LGB, 240Rnd_CMFlare_Chaff_Magazine }; class AnimationSources: AnimationSources { class AddFalchion: AddFalchion { initPhase = 1; }; class AddGbu12: AddGbu12 { initPhase = 1; }; }; availableForSupportTypes[] = {CAS_Bombing}; cost = 3000000; }; class B_CTRG_Plane_Fighter_01_CAS_F: Plane_Fighter_01_base_F { author = $STR_A3_Night515; _generalMacro = "B_CTRG_Plane_Fighter_01_CAS_F"; scope = public; scopeCurator = public; displayName = "F-38 Stalker (CAS)"; side = 1; faction = BLU_CTRG_F; crew = B_CTRG_pilot_F; typicalCargo[] = {B_CTRG_pilot_F}; weapons[] = { gatling_25mm, Missile_AA_04_Plane_CAS_01_F, GBU12BombLauncher, CMFlareLauncher }; magazines[] = { 300Rnd_25mm_shells, 2Rnd_Missile_AA_04_plane_fighter_01_F, 2Rnd_GBU12_LGB, 240Rnd_CMFlare_Chaff_Magazine }; class AnimationSources: AnimationSources { class AddFalchion: AddFalchion { initPhase = 1; }; class AddGbu12: AddGbu12 { initPhase = 1; }; }; availableForSupportTypes[] = {CAS_Bombing}; cost = 3000000; hiddenSelections[] = {"Camo"}; hiddenSelectionsTextures[] = {"\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_ext_BLUFOR_CO.paa"}; }; class B_Plane_Fighter_01_AA_F: B_Plane_Fighter_01_CAS_F { author = $STR_A3_Night515; forceInGarage = true; _generalMacro = "B_Plane_Fighter_01_AA_F"; displayName = "F-38 Stalker (AA)"; weapons[] = { gatling_25mm, missiles_Zephyr, Missile_AA_04_Plane_CAS_01_F, CMFlareLauncher }; magazines[] = { 300Rnd_25mm_shells, 2Rnd_GAA_missiles, 2Rnd_Missile_AA_04_plane_fighter_01_F, 240Rnd_CMFlare_Chaff_Magazine }; class AnimationSources: AnimationSources { class AddGbu12: AddGbu12 { initPhase = 0; }; class AddZephyr: AddZephyr { initPhase = 1; }; }; availableForSupportTypes[] = {}; }; class B_CTRG_Plane_Fighter_01_AA_F: B_CTRG_Plane_Fighter_01_CAS_F { author = $STR_A3_Night515; _generalMacro = "B_CTRG_Plane_Fighter_01_AA_F"; displayName = "F-38 Stalker (AA)"; weapons[] = { gatling_25mm, missiles_Zephyr, Missile_AA_04_Plane_CAS_01_F, CMFlareLauncher }; magazines[] = { 300Rnd_25mm_shells, 2Rnd_GAA_missiles, 2Rnd_Missile_AA_04_plane_fighter_01_F, 240Rnd_CMFlare_Chaff_Magazine }; class AnimationSources: AnimationSources { class AddGbu12: AddGbu12 { initPhase = 0; }; class AddZephyr: AddZephyr { initPhase = 1; }; }; availableForSupportTypes[] = {}; }; class Plane_Fighter_01_wreck_F: PlaneWreck { author = $STR_A3_Night515; _generalMacro = "Plane_Fighter_01_wreck_F"; scope = protected; scopeCurator = private; class Armory { disabled = true; }; model = "Air_F_Aegis\Plane_Fighter_01\Plane_Fighter_01_wreck_F.p3d"; typicalCargo[] = {}; irTarget = false; transportAmmo = false; transportRepair = false; transportFuel = false; transportSoldier = true; class Eventhandlers{}; }; };