Scripting is a very important tool in creating good missions or addons. Scripts can be executed from a trigger, or in the initialization field of a player or object, or even executed inside other scripts. A script is a block of statements often found in a plain text file with an extension of .sqs or .sqf. As of Arma 2, .sqf is the primary script file format and, although .sqs scripts can still function, the file format has been deprecated. If you are new to scripting you should try to script in .sqf.
A simple example of executing a script in the player init field would look something like this:
This page is intended to serve as a launchpad for both new and experienced script writers to access tutorials and reference materials. Most of the information found here can be generalized between many of the Bohemia Interactive games. Game-specific material will be cited as such.
For those looking to learn more about scripting, begin with the basic tutorial Introduction to Arma Scripting.
The links below take you to the Scripting Commands and related information for the various Bohemia Interactive games.
Scripting Commands - Complete List of All Scripting Commands.
Scripting Commands for Arma 3 - Scripting Commands for Arma 3.
Scripting Commands for Take On Helicopters - Scripting Commands for Take On Helicopters.
Scripting Commands for Arma 2 - Scripting Commands for Arma 2 & Arma 2: Operation Arrowhead.
Scripting Commands for Arma - Scripting Commands for Arma: Armed Assault.
Scripting Commands for OFP: Elite - Scripting Commands for OFP: Elite.
Scripting Commands for OFP Version 1.96 - Scripting Commands for OFP v1.46 to v1.96.
Scripting Commands OFP Version 1.46 - Scripting Commands for OFP v1.00 to v1.46.
This category has the following 21 subcategories, out of 21 total.
- ► Briefing (3 P)
- ► Introduced with (9 C)
- ► Reference Lists (9 C, 32 P, 1 F)
- ► Types (8 P)
- ► Weapons (8 P)
Pages in category "Scripting Topics"
The following 53 pages are in this category, out of 53 total.
- action/Arma 2 Actions List
- action/Arma 3 Actions List
- action/Arma Actions list
- action/Operation Flashpoint Actions List
- All Arma Commands Pages
- Arma 2:Task Tutorial
- Arma 3 Animated Opening
- Arma 3 Simple Objects
- Arma 3 Task Framework Tutorial
- Arma 3: Event Handlers
- Arma 3: Event Handlers/addMissionEventHandler