====== ArmA 2 Aircraft Chaff and Flares ======
[[https://www.pmctactical.org/forum/viewforum.php?f=50|ArmA 2 Forum]], [[:arma2|ArmA 2 Home]], [[arma2:config|ArmA 2 Config]], [[arma2:file_formats|ArmA 2 File Formats]], [[arma2:missions|ArmA 2 Missions]], [[arma2:modeling|ArmA 2 3D Modeling]], [[arma2:scripting|ArmA 2 Scripting]], [[arma2:terrain|ArmA 2 Terrain]], [[arma2:texturing|ArmA 2 Texturing]], [[arma2:tools|ArmA 2 Tools]]
ArmA 2 how to setup chaff and flares in config.cpp
config.cpp
flareVelocity = 100;
memoryPointCM[] = {"flare_launcher1","flare_launcher2"};
memoryPointCMDir[] = {"flare_launcher1_dir","flare_launcher2_dir"};
weapons[] = {"CMFlareLauncher"};
magazines[] = {"120Rnd_CMFlareMagazine"};
LockDetectionSystem = 8;
IncommingMisslieDetectionSystem = 16;
Then on surface to air missiles like SA-2, SA-7 Strela launcher add:
weaponLockSystem = "16 + 2";
cmImmunity = 0.8;
Your aircraft needs memory points in the p3d model to indicate where flares and chaff is launched.