Very useful code samples for decorating your base in Arma 3.

Decorating a base in Arma 3 is a lot of fun. Here is some useful code to help out with this. Spawn an LAU-68/A 70mm Rocket pod on a camp table. 1 2 3 _pos261 = [0,0,0]; _tree261 = createSimpleObject ["a3\weapons_f_epc\Ammo\Rocket_Pod_02_F.p3d", _pos261]; _tree261 attachTo [t3,[0,0,0.70]];_pos261 = [0,0,0]; _tree261 = createSimpleObject ["a3\weapons_f_epc\Ammo\Rocket_Pod_02_F.p3d", _pos261]; _tree261 attachTo [t3,[0,0,0.70]]; … Read more

How to spawn RHS or Project OPFOR units with the Arma 3 Spawn AI module.

The spawn AI module for Arma 3 is very good for spawning AI in a mission and having them capture sectors automatically, but how do you spawn AI from mods? This is easy. Just use this code below in the initialization section of the module. this setVariable[ "side", "East", true ]; this setVariable[ "faction", "LOP_ChDKZ", … Read more

How to spawn items in Arma 3 that are not available in EDEN.

Spawning items in Arma 3 can be annoying if they are set to scope = 1; and are not available in the editor to place. But if you know the classname, they can be placed easily. Use this code to spawn them. Run this in the debug console in EDEN editor. create3DENEntity ["Object", "Land_Communication_anchor_F", screenToWorld … Read more

How to spawn fire on top of a smoke stack in Arma 3 and other useful tips for mission making.

Spawn fire in air in Arma 3 Put this code in your initPlayerLocal.sqf and this will spawn a fire object on top of a smoke stack. _firePos = [4234.45,18088.8,58.9342]; _fire = "test_EmptyObjectForFireBig" createVehicle _firePos; _fire setPos [_firePos select 0, _firePos select 1, 59];_firePos = [4234.45,18088.8,58.9342]; _fire = "test_EmptyObjectForFireBig" createVehicle _firePos; _fire setPos [_firePos select 0, … Read more

Arma 3 script samples for creating a scripted mission.

This simple script sample will spawn 3 enemy groups around a central point in safe places. Fixed version, I accidentally posted the wrong code, this will work fine. I tested this in a mission and it works now. _Center = _randPos2; _Circle1 = [_Center, 150, 150, 0, 0, 20, 0] call BIS_fnc_findSafePos; _Circle2 = [_Center, … Read more

Easily spawn an enemy jet to patrol an AO in Arma 3 with a script.

This simple script will spawn a jet to patrol an AO and attack any enemy vehicle or helicopter it sees. This is improved code that has a proper patrol radius and is better than the jet patrolling in too small a radius. // Spawn a CAS jet to patrol the AO.   #define PLANE_TYPE "rhs_l159_CDF","rhs_l39_cdf","rhs_mig29s_vmf","RHS_Su25SM_vvsc","RHS_T50_vvs_generic","RHS_T50_vvs_generic_ext","RHS_T50_vvs_blueonblue" … Read more