How to execute scripts with the new CE Executer (Some scripts inside)

Posts 1–15 of 43 · Page 1 of 3
How to execute scripts with the new CE Executer (Some scripts inside)
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.
Thanks alot man, just 1 question, is there a way to get banned on non BE servers for doing this?
I dont wanna waste my time finding items, but its not worth it if i get banned.
Confirmed working.

Question though: Anyone know the code to spawn a tank? (yes, it can be done)
quick question any idea why arma 2 keeps crashing when i hit execute. do i need to be in a sever before i hit execute?

ty
Whats the Code for an L85 AWS?... heat scope....
Quote Originally Posted by SplinkFlex View Post
Whats the Code for an L85 AWS?... heat scope....
player addweapon "BAF_L85A2_RIS_CWS";
Quote Originally Posted by iDEAD View Post
player addweapon "BAF_L85A2_RIS_CWS";
Thanks man what about the stanag ammo?
DMR and DMR mags?

Pistols n mags?
Quote Originally Posted by qwerty6 View Post
DMR and DMR mags?

Pistols n mags?
DMR:
Gun: player addweapon "DMR";
Mags: player addMagazine "20Rnd_762x51_DMR";

M9SD:
Gun: player addweapon "M9SD";
Mags: player addMagazine "15Rnd_9x19_M9SD";
Maybe you have the M1911 pistol and mags. Thats the best one in my opinion.


EDIT: iDead can you also explain me how to add DMR with Mags, M1911 with mags, and nightvision googles? Step by step? Many thanks.
was wondering if we can join any server or if there are any particular servers to join and do this?
ok so done this all step by step , when i hit execute on my filename in the hack it makes my aram 2 OA windows crash anyone got any ideas?

thanks
Seems like a lot of players crash whenever the goat-vehicle script is executed.
The only part i found unclear is when do i join the server? for the vehicle spawn example will there be a goat where im standing ingame when i join AFTER i have done all the steps?
mine crash's on all scripts dunno how to fix tried everything i can think of
Posts 1–15 of 43 · Page 1 of 3

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?