Hopefully this is 100% easy for you all to understand.
- Download Cheat Engine 6.2
- Download the CE Script Executor here
- Launch Arma 2 OA -- DO NOT JOIN A SERVER
- Run the ArmA2OA_ExecVM.CETRAINER file from the CE Executor
- Create a new file in your OA Directory (Call it <filename>.sqf
- Insert your code in this script file
- Type in the <filename>.sqf file into the Script Executor and his "Execute"
- Leave the script executor open while you are executing scripts!
So you ask, what code should I put in there? Well there is a variety of code, everything from unlimited ammo to teleporting to vehicle spawning. For this example I'm going to show you
Analog's vehicle spawn script, and add in my own comments to break down the script.
Code:
'Goat' createunit [[(getpos player select 0), (getpos player select 1), 50], group player,'beeeh = this', 1.0, 'PRIVATE']; //creates a goat near you
beeeh addMPEventHandler ['mpkilled', //triggers the code below once the goat (aka beeeh) is dead (EventHandler and mpkilled)
{
vehicleToSpawn = 'UH1H_DZ'; //the vehicle that will spawn once the goat is killed - here it is a helicopter
if (isServer) then
{
(vehicleToSpawn createVehicle (position beeeh))setVariable ['ObjectID', 521, true]; //checks what vehicle is set to spawn and spawns it
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,getPos beeeh nearestObject vehicleToSpawn];
};
}]; //end of the scripts
So, let's say you name the above helicopter.sqf in the Arma 2 directory, you would simply put helicopter.sqf into the CE Executor, hit execute, and a goat would spawn. Kill the goat and a UH1H (Helicopter) will spawn.
Vehicles that can be spawned (ONLY USE THE CLASSNAME, NOT THE PART IN PARENTHESES):
Code:
Ikarus (Bus)
ATV_CZ_EP1 (ATV)
ATV_US_EP1 (ATV)
Old_bike_TK_CIV_EP1 (Bike)
S1203_TK_CIV_EP1 (S1203 Van)
hilux1_civil_3_open (Hilux aka Pickup)
Ural_TK_CIV_EP1 (Ural Truck)
Volha_2_TK_CIV_EP1 (White GAZ)
TT650_Ins (Motorcycle)
tractor (Tractor)
car_hatchback (Yellow hatchback)
UH1H_DZ (Ingame UH1H)
V3S_Civ (V3S Truck)
UAZ_CDF (UAZ)
An example of a teleport script:
Teleport -- WARNING WILL TELEPORT YOU WHENEVER YOU LEFT CLICK THE MAP(Credits to aN00B1s):
Code:
player addweapon "ItemMap"; //gives a map
openMap true; //opens the map
player setVariable["lastPos",0, true]; //believe this targets your location on the map for the server
onMapSingleClick "player setPos _pos; true;" //sends you to the point where you SINGLE CLICK
You can find the ammobox one back in the forum. I have given you a rough tutorial on scripting in ArmA2 and told you how to use the executor, so now stop complaining about there being a lack of scripts and create you own fucking scripts if you're unhappy.
An example of how to bypass the ammobox and add to your inventory:
Credits to iNTELFREAK:
Code:
player addBackPack "DZ_Backpack_EP1"; //adds coyote backpack
player addweapon "G36_C_SD_camo"; //adds G36C SD Camo
player addMagazine '30Rnd_556x45_StanagSD'; //adds SD Mag
player addMagazine '30Rnd_556x45_StanagSD';
player addMagazine '30Rnd_556x45_StanagSD';
player addMagazine '30Rnd_556x45_StanagSD';
player addMagazine '30Rnd_556x45_StanagSD';
player addMagazine '30Rnd_556x45_StanagSD';
player addMagazine '30Rnd_556x45_StanagSD';
player addMagazine '30Rnd_556x45_StanagSD';
player addMagazine '30Rnd_556x45_StanagSD';
player addweapon "M9SD"; //adds M9SD Offhand
player addMagazine "15Rnd_9x19_M9SD"; //adds M9SD Mags
player addMagazine "15Rnd_9x19_M9SD";
player addMagazine "15Rnd_9x19_M9SD";
player addMagazine "15Rnd_9x19_M9SD";
player addWeapon 'Binocular_Vector'; //rangefinder
player addWeapon 'NVGoggles'; //nvgs
player addWeapon 'ItemGPS'; //gps
player addWeapon 'ItemCompass'; //compass
player addWeapon 'ItemMap'; //map
player addWeapon 'ItemWatch'; //watch
player addWeapon 'ItemHatchet'; //hatchet
player addWeapon 'ItemKnife'; //knife
player addWeapon 'Itemmatchbox'; //box of matches
player addWeapon 'Itemetool'; //entrenching tool for sandbags
player addWeapon 'Itemtoolbox'; //toolbox
player addWeapon 'ItemFlashlightRed'; //military flashlight
player addMagazine 'ItemBandage'; //bandage
player addMagazine 'ItemBandage';
player addMagazine 'ItemBandage';
player addMagazine 'ItemBandage';
player addMagazine 'Skin_Sniper1_DZ'; //sets skin to ghillie
bp = unitBackpack player; //ADDS ITEM TO BACKPACK (THUS BP)
bp addMagazineCargoGlobal ["ItemBloodbag",2]; //adds 2 blood bags to your coyote
bp addMagazineCargoGlobal ["ItemPainkiller",2];
bp addMagazineCargoGlobal ["ItemAntibiotic",2];
bp addMagazineCargoGlobal ["ItemMorphine",2];
bp addMagazineCargoGlobal ["ItemEpinephrine",2];
bp addMagazineCargoGlobal ["ItemWaterbottle",4];
bp addMagazineCargoGlobal ["FoodSteakCooked",4];
bp addMagazineCargoGlobal ["30Rnd_556x45_StanagSD",3];
bp addMagazineCargoGlobal ["15Rnd_9x19_M9SD",3];
If you need any help please just post in this thread. But please do not ask a question about how to execute scripts. I have explained it in the simplest format in both threads. I will not respond to questions about how to execute scripts.