Scripting Topics – Category
m (→Introduction) |
|||
Line 1: | Line 1: | ||
==Introduction== | ==Introduction== | ||
Scripting is a very important tool in creating good missions or addons. Scripts can be excuted from a [[Triggers|trigger]], or in the init field of a [[player]] or [[object]], or even executed inside other scripts. A script is a simple text file, with an extension of .sqs or .sqf. In Arma2 the .sqs can still function, although it has been depreciated, if you are new to scripting you should try to script in the .sqf. | Scripting is a very important tool in creating good missions or addons. Scripts can be excuted from a [[Triggers|trigger]], or in the init field of a [[player]] or [[object]], or even executed inside other scripts. A script is a simple text file, with an extension of .sqs or .sqf. In Arma2 the .sqs can still function, although it has been depreciated, if you are new to scripting you should try to script in the .sqf, also start [[Scripting|here]]. | ||
A simple example of executing a script in the player init field would look something like this: | A simple example of executing a script in the player init field would look something like this: |
Revision as of 01:13, 6 November 2009
Introduction
Scripting is a very important tool in creating good missions or addons. Scripts can be excuted from a trigger, or in the init field of a player or object, or even executed inside other scripts. A script is a simple text file, with an extension of .sqs or .sqf. In Arma2 the .sqs can still function, although it has been depreciated, if you are new to scripting you should try to script in the .sqf, also start here.
A simple example of executing a script in the player init field would look something like this:
[argument] exec "myscript.sqs" (for SQS scripts)
nul = [argument] execVM "myscript.sqf" (for SQF scripts)
As there is a very keen interest in the newly added ArmA 2 scripting commands, the following list was created so that fans could easily find these new commands: ArmA 2: New Scripting Commands
Command Reference
The links below take you to the OFP/ArmA Scripting Commands and related information.
Scripting Commands - Complete List of All Scripting Commands.
Scripting Commands for ArmA - Scripting Commands for Armed Assault.
Scripting Commands for ArmA 2 - Scripting Commands for Armed Assault 2.
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.
Scripting Commands for VBS1 - Scripting Commands for VBS1.
Scripting Commands for VBS2 - Scripting Commands for VBS2.
Subcategories
This category has the following 10 subcategories, out of 10 total.
A
- Actions (4 P)
- Arma Scripting Tutorials (17 P)
C
- Common Scripting Errors (9 P)
D
E
- Event Handlers (9 P)
- Example Code (6 P)
F
- Functions Library (3 P)
S
- Syntax (13 P)
Pages in category "Scripting Topics"
The following 24 pages are in this category, out of 24 total.