Arma 3 code snippets for making mods and missions.

This is a class that create a backpack that will unpack into a IED. It will detonate if shot at. class B_Carryall_EXP : Weapon_Bag_Base { scope = 2; class assembleInfo { assembleTo = "ModuleExplosive_IEDLandBig_F"; base = ""; displayName = "NATO Exp backpack."; dissasembleTo[] = {}; primary = 1; }; displayName = "NATO Exp backpack."; hiddenSelectionsTextures[] … Read more

Code for Arma 3 to spawn you in a random jet with infinite ammo and refilling fuel.

This code will spawn you in a jet flying over the AO, this will pick a random jet and spawn you a long way up, so you will not crash before orienting yourself. Put this script in initPlayerLocal.sqf. private "_jet"; _jet = createVehicle [selectRandom ["O_Plane_Fighter_02_Stealth_F", "I_Plane_Fighter_04_F", "B_Plane_Fighter_01_Stealth_F", "O_Plane_CAS_02_dynamicLoadout_F"], getArray (configFile >> "CfgWorlds" >> worldName >> … Read more