DayZ Scripting [Ongoing/Being Updated]
DayZ Scripting Tutorial
Requirements ... Bypass ... DayZ ... And yeah a menu to test it with
Requirements ... Bypass ... DayZ ... And yeah a menu to test it with
To Start off all scripts are written in the ArmA 2 Coding format so there is no GNU Editor to help you with this. I would Suggest using Notepad++ For windows or GEdit for Linux (who would be here with a linux os?). Scripting in DayZ is basically trial and error. these next few codes will teach you the fundamentals of coding sqf files.
To Start Off Lets Make a Simple Teleport Script (this file is attached)
Code:
player addWeapon 'ItemMap';
abcd=
{
_pos = [_this select 0, _this select 1, _this select 2];
(vehicle player) setpos [_pos select 0, _pos select 1, 0];
player setVariable["lastPos",1];player setVariable["lastPos",[]];
onMapSingleClick "";
openMap [false, false];
};
openMap [true, false];
onMapSingleClick "[_pos select 0, _pos select 1, _pos select 2] call abcd";
Now lets break it apart :
This spawns a map in the players Inventory
Code:
player addWeapon 'ItemMap';
Code:
abcd=
{
//This Represents a Location it will be used to teleport the player
_pos = [_this select 0, _this select 1, _this select 2];
//this changes the players location to the position above ^^^ (Format [X,Y,Z])
(vehicle player) setpos [_pos select 0, _pos select 1, 0];
//This changes the players last position to null so you are not detected
player setVariable["lastPos",1];player setVariable["lastPos",[]];
//clears the on map single click
onMapSingleClick "";
//Closes the map ([False, False] Closes)
openMap [false, false];
};
Code:
//Opens the map ([True, False] Opens) openMap [true, false]; //When the map is single clicked it will do this //Important : Call abcd runs that script before the teleport is executed onMapSingleClick "[_pos select 0, _pos select 1, _pos select 2] call abcd";
I will update this with more scripting tutorials...

I'm kind of interested to learn this.
