Very 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 this code to your initServer.sqf …

This simple script will spawn a jet to patrol an AO and attack any enemy vehicle or helicopter it sees. // Spawn a CAS jet to patrol the AO.   _plane = createVehicle ["O_Plane_CAS_02_F", getMarkerPos("plane"), [], 0, "FLY"]; _pilotguy = [[26761.4,24593.4,0.000909805], EAST, ["O_Pilot_F"],[],[],[],[],[],232] call BIS_fnc_spawnGroup;   ((units _pilotguy) select 0) moveInDriver _plane; _wpcas = _pilotguy …

How to define a string and print it out with the printf() function. #include <stdio.h>   /* Defining a global string. */   #define hi "Hello Sire."   int main(void) { /* Printing out the string. */ printf("%s\n", hi);   return 0; }#include <stdio.h> /* Defining a global string. */ #define hi "Hello Sire." int …

http://www.securitronlinux.com/files/sysinfo.kdevelop-1.0.tar.gz. This is the link to my newly updated sysinfo program. This has code added using the sysinfo struct. This means that the memory and uptime information that is output is actually readable now. This is what the output of the memory and uptime section looks like now. [email protected]:~/Documents/sysinfo.kdevelop-1.0$ ./sysinfo 2 Ram & swap information. …

This code sample will render a spiral on your terminal when you compile and execute it. Very interesting indeed. #include <sstream> #include <iostream> #include <string>   std::string rle = "32 [email protected] 1n16 [email protected] [email protected] 1n13 [email protected] [email protected] [email protected] 1n10 [email protected] [email protected] [email protected] 1n7 [email protected] [email protected] [email protected] " "1n6 [email protected] [email protected] [email protected] [email protected] 1n4 [email protected] [email protected]

This code prints out a tick sign using asterisks. I tested this code on Fedora 19 and gcc 4.8 and it compiles without any problems. #include <iostream> #include <iomanip>   using std::cout;   int main() {   cout<<std::setw(8)<<"*"<<"n"; cout<<std::setw(7)<<"*"<<"n"; cout<<std::setw(6)<<"*"<<"n";   cout<<"* *"<<"n"<<"* *"<<"n"<<"*"; cout<< "n";   return 0; }#include <iostream> #include <iomanip> using std::cout; …