Scripting Topics – Category

From Bohemia Interactive Community
Jump to navigation Jump to search
(Add functions)
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
==Introduction==
{| style="width: 100%"
Scripting is a very important tool in creating good missions or addons. Scripts can be executed from a [[Triggers|trigger]], or in the initialization 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, .sqs scripts can still function, although .sqs format has been deprecated. If you are new to scripting you should try to script in .sqf. Also, start [[Scripting|here]].
| style="vertical-align: top; width: 55%" | Scripting is a very important tool used to create good missions or addons.<br>
Most of the information found here can be generalized between many of the [[Bohemia Interactive]] games (mostly using the [[Real Virtuality]] engine). Game-specific material will be cited as such.  


A simple example of executing a script in the player init field would look something like this:


<nowiki>[</nowiki>argument<nowiki>]</nowiki> [[exec]] "myscript.sqs" (for [[SQS syntax|SQS]] scripts)
If you are looking for an introduction to scripting for beginners, see '''[[Introduction to Arma Scripting]]'''.


nul = <nowiki>[</nowiki>argument<nowiki>]</nowiki> [[execVM]] "myscript.sqf" (for [[SQF syntax|SQF]] scripts)
|
: {|
|+ '''Scripting commands and functions by game'''
! <span style="font-family: serif; font-size: 1.75em">&infin;</span>
|
: All RV games
|
: [[:Category:Scripting Commands|Commands]] / [[:Category:Functions|Functions]]
|-
! {{GVI|arma3|1.00}}
|
: {{Name|arma3|short}}
|
: [[:Category:Scripting Commands Arma 3|Commands]] / [[:Category:Arma 3: Functions|Functions]]
|-
! {{GVI|arma2oa|1.50}}
|
: {{Name|arma2oa|short}}
|
: [[:Category:Scripting Commands Arma 2: Operation Arrowhead|Commands]] / [[:Category:Arma 2: Operation Arrowhead: Functions‎|Functions]]
|-
! {{GVI|arma2|1.00}}
|
: {{Name|arma2|short}}
|
: [[:Category:Scripting Commands Arma 2|Commands]] / [[:Category:Arma 2: Functions‎|Functions]]
|-
! {{GVI|arma|1.00}}
|
: {{Name|arma|short}}
|
: [[:Category:Scripting Commands ArmA|Commands]]
|-
! {{GVI|ofpe|1.00}}
|
: {{Name|ofpe|short}}
|
: [[:Category:Scripting Commands OFP Elite|Commands]]
|-
! {{GVI|ofp|1.99}}
|
: {{Name|arma0|short}}
|
: [[:Category:Scripting Commands OFP 1.99|Commands]]
|-
! {{GVI|ofpr|1.96}}
|
: {{Name|ofpr|short}}
|
: [[:Category:Scripting Commands OFP 1.96|Commands]]
|-
! {{GVI|ofp|1.46}}
|
: {{Name|ofp|short}}
|
: [[:Category:Scripting Commands OFP 1.46|Commands]]
|-
! {{GVI|tkoh|1.00}}
|
: {{Name|tkoh|short}}
|
: [[:Category:Scripting Commands Take On Helicopters|Commands]]
|}


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:
|}


'''[[:Category:ArmA_2:_New_Scripting_Commands_List|Arma 2: New Scripting Commands]]'''
[[Category:Operation Flashpoint: Editing]]
 
'''[[:Category:Arma_3:_New_Scripting_Commands_List|Arma 3: New Scripting Commands]]'''
 
==Command Reference==
The links below take you to the OFP/ArmA Scripting Commands and related information.
 
[[:Category:Scripting Commands|Scripting Commands]] - '''Complete''' List of All Scripting Commands.
 
[[:Category:Scripting Commands Arma 3|Scripting Commands for Arma 3]] - Scripting Commands for '''Arma 3'''.
 
[[:Category:Scripting_Commands_ArmA2_vs_VBS2_2|Scripting Commands Arma 2 vs VBS2 2]] - List of commands that are in Arma 2 but not in VBS2 2.02.
 
[[:Category:Scripting Commands Take On Helicopters|Scripting Commands for Take On Helicopters]] - Scripting Commands for '''Take On Helicopters'''.
 
[[:Category:Scripting Commands ArmA2|Scripting Commands for Arma 2]] - Scripting Commands for '''Arma 2 & Arma 2: Operation Arrowhead'''.
 
[[:Category:Scripting Commands ArmA|Scripting Commands for Arma]] - Scripting Commands for '''Arma: Armed Assault'''.
 
[[:Category:Scripting Commands OFP Elite|Scripting Commands for OFP: Elite]] - Scripting Commands for '''OFP: Elite'''.
 
[[:Category:Scripting Commands OFP 1.96|Scripting Commands for OFP Version 1.96]] - Scripting Commands for '''OFP v1.46 to v1.96'''.
 
[[:Category:Scripting Commands OFP 1.46|Scripting Commands OFP Version 1.46]] - Scripting Commands for '''OFP v1.00 to v1.46'''.
 
[[:Category:Scripting Commands VBS1|Scripting Commands for VBS1]] - Scripting Commands for '''VBS1'''.
 
 
[[Category: ArmA: Editing]]
[[Category: ArmA 2: Editing]]
[[Category:Operation Flashpoint Elite: Editing]]
[[Category:Operation Flashpoint Elite: Editing]]
[[Category:Operation Flashpoint: Editing]]
[[Category:ArmA: Editing]]
[[Category:Arma 2: Editing]]
[[Category:Arma 3: Editing]]
[[Category:Take On Helicopters: Editing]]

Revision as of 19:50, 15 April 2020

Scripting is a very important tool used to create good missions or addons.

Most of the information found here can be generalized between many of the Bohemia Interactive games (mostly using the Real Virtuality engine). Game-specific material will be cited as such.


If you are looking for an introduction to scripting for beginners, see Introduction to Arma Scripting.

Scripting commands and functions by game
All RV games
Commands / Functions
Arma 3 logo black.png1.00
Arma 3
Commands / Functions
A2 OA Logo.png1.50
Arma 2:OA
Commands / Functions
Logo A2.png1.00
Arma 2
Commands / Functions
-wrong parameter ("Arma") defined!-1.00
Arma
Commands
ofpe logo.png1.00
OFP:E
Commands
Logo A0.png1.99
Arma:CWA
Commands
ofpr version.gif1.96
OFP:R
Commands
Logo A0.png1.46
OFP
Commands
tkoh logo small.png1.00
TKOH
Commands

Subcategories

This category has the following 10 subcategories, out of 10 total.

A

D

E

F

S