How to sign an Arma 3 mod with BI utilities and make it ready for the Steam Workshop.
How to use BI utilities to sign a PBO properly. This is very useful.
Read MoreHow to use BI utilities to sign a PBO properly. This is very useful.
Read MoreSome more very useful Arma 3 scripting samples.
Read MoreTo save the player`s loadout after they close the arsenal in Arma 3, put this code in the initPlayerLocal.sqf file. This code will save the player loadout after the arsenal is closed. [missionnamespace,"arsenalClosed", { [player, [missionNamespace, "inventory_var"]] call BIS_fnc_saveInventory; titletext ["Arsenal loadout saved.", "PLAIN DOWN"]; }] call bis_fnc_addScriptedEventhandler;[missionnamespace,"arsenalClosed", { [player,…
Read MoreTo make an artillery piece to fire on a certain spot in the editor, firstly, place the Scorcher unit, name it “arty1” and put this code in the init. this addeventhandler ["fired", {(_this select 0) setvehicleammo 1}]this addeventhandler ["fired", {(_this select 0) setvehicleammo 1}] This will give it unlimited ammo….
Read MoreThere is a nice Arma 3 command that will allow a mission designer to have a nice ambient flyby of a jet plane or a helicopter. This would be very nice for a mission, and would add some atmosphere. This example has a jet flying from one location to another….
Read MoreSpawning random enemies can be troublesome in Arma 3. But this makes it easier. This will spawn the enemies in the middle of the map and this will find a safe location to spawn them. Fixed code for 2022. Loc = [worldSize / 2, worldsize / 2, 0]; SafePos2…
Read MoreThis simple code will start a mortar strike on an enemy position when a vehicle is destroyed. car1 addEventHandler [ ‘Killed’, { _bombardment = [BIS_Mortar,getMarkerPos "mk2","8Rnd_82mm_Mo_shells",100,24,10] execVM "a3\missions_f_exp\showcases\showcase_endgame.tanoa\scripts\firesupport.sqf"; }];car1 addEventHandler [ ‘Killed’, { _bombardment = [BIS_Mortar,getMarkerPos "mk2","8Rnd_82mm_Mo_shells",100,24,10] execVM "a3\missions_f_exp\showcases\showcase_endgame.tanoa\scripts\firesupport.sqf"; }]; Name the mortar BIS_Mortar, then place a marker on the…
Read MoreTo play music while players enjoy your mission, use this simple but effective function. 6 fademusic 0.1; [] call BIS_fnc_jukebox;6 fademusic 0.1; [] call BIS_fnc_jukebox; This plays ambient music, randomly selecting tracks to play. Put this in the initPlayerLocal.sqf file. Put this code in the init of a vehicle…
Read MoreDetect if a player has the APEX DLC. if (395180 in getDLCs 1) then { (_this select 0) ctrlsettext ‘\a3\Ui_f\Data\Logos\arma3apex_white_ca.paa’; };if (395180 in getDLCs 1) then { (_this select 0) ctrlsettext ‘\a3\Ui_f\Data\Logos\arma3apex_white_ca.paa’; }; Remove all NVG goggles and weapons from enemies. { if (side _x == east) then { _x…
Read MoreThis 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]…
Read MoreArma 3 scripting samples for creating MP missions This code sample inserted into the initServer.sqf will protect buildings 900m around your base from destruction by retards with a grudge against your server. { _x allowdamage false; } foreach (nearestTerrainObjects [crat99,["house"],900]);{ _x allowdamage false; } foreach (nearestTerrainObjects [crat99,["house"],900]); Name an object…
Read MoreThis 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…
Read MoreSome very good Arma 3 scripting samples Put this code into the init of a crate to create an Arsenal crate. this addaction ["Open Virtual Arsenal", { ["Open",true] call BIS_fnc_arsenal; }];this addaction ["Open Virtual Arsenal", { ["Open",true] call BIS_fnc_arsenal; }]; This code in the initPlayerLocal.sqf and onPlayerRespawn.sqf files will remove…
Read MoreArma 3 on Linux is now at version 1.76, this is on parity with the Windows build and would allow playing on multiplayer servers on a Linux box. I have found that with the 3.40 Nvidia drivers, I get less FPS than with Windows, but it does actually run quite…
Read MoreSome very cool Arma 3 SQF scripting samples Shoot a vehicle or soldier 50,000 feet into the sky. cursorTarget setVelocity [0,0,1000]; hint format["%1 Is flying to space!",name cursorTarget];cursorTarget setVelocity [0,0,1000]; hint format["%1 Is flying to space!",name cursorTarget]; Spawn an AAF support crate in random houses around the HQ. _houseList =…
Read MoreVery useful Arma 3 scripting samples This scripting sample will remove the solar panels and doors from the Orange DLC tents and make them look like a good old fashioned MASH tent. med1 animateSource ["MedSign_Hide",1,true]; med1 animateSource ["Door_Hide",1,true]; med1 setObjectTextureGlobal [0,"\A3\Structures_F_Orange\Humanitarian\Camps\Data\MedicalTent_01_tropic_F_CO.paa"];med1 animateSource ["MedSign_Hide",1,true]; med1 animateSource ["Door_Hide",1,true]; med1 setObjectTextureGlobal [0,"\A3\Structures_F_Orange\Humanitarian\Camps\Data\MedicalTent_01_tropic_F_CO.paa"]; Add…
Read MoreVery useful Arma 3 code samples to make better missions.
Read MoreThis 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…
Read MoreThis simple code for Arma 3 will spawn a randomly placed HQ building within the area of the mkr1 marker. This is a 4000×4000 marker placed on the map. This gets a random safe area and places the building within the area of this marker. _mrk = "mkr1"; _area =…
Read MoreThe Arma 3 server product is available for Linux machines, but what about the main client product? This is also available for Linux. I added the multiverse repository. jason$ sudo add-apt-repository multiverse && sudo apt updatejason$ sudo add-apt-repository multiverse && sudo apt update Then I added 32-bit support. jason$ sudo…
Read More