Scripting Topics – Category

From Bohemia Interactive Community
Jump to navigation Jump to search
("nul" is no special thing, but people tend to believe so)
(Reword from a more modern perspective, prepare for tutorial revamp)
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Introduction==
==Introduction==
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]].
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 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:
A simple example of executing a script in the player init field would look something like this:
Line 6: Line 6:
  <nowiki>[</nowiki>argument<nowiki>]</nowiki> [[exec]] "myscript.sqs" (for [[SQS syntax|SQS]] scripts)
  <nowiki>[</nowiki>argument<nowiki>]</nowiki> [[exec]] "myscript.sqs" (for [[SQS syntax|SQS]] scripts)


  _scriptHandle = <nowiki>[</nowiki>argument<nowiki>]</nowiki> [[execVM]] "myscript.sqf" (for [[SQF syntax|SQF]] scripts)
  nul = <nowiki>[</nowiki>argument<nowiki>]</nowiki> [[execVM]] "myscript.sqf" (for [[SQF syntax|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:
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.


'''[[:Category:ArmA_2:_New_Scripting_Commands_List|Arma 2: New Scripting Commands]]'''
==Getting Started==


'''[[:Category:Arma_3:_New_Scripting_Commands_List|Arma 3: New Scripting Commands]]'''
For those looking to learn more about scripting, begin with the basic tutorial [[ArmA: Introduction to Scripting|Arma: Introduction to Scripting]].


==Command Reference==
==Command Reference==
The links below take you to the OFP/ArmA Scripting Commands and related information.
The links below take you to the Scripting Commands and related information for the various [[Bohemia Interactive]] games.


[[:Category:Scripting Commands|Scripting Commands]] - '''Complete''' List of All Scripting Commands.
[[:Category:Scripting Commands|Scripting Commands]] - '''Complete''' List of All Scripting Commands.
Line 37: Line 37:
[[:Category:Scripting Commands VBS1|Scripting Commands for VBS1]] - Scripting Commands for '''VBS1'''.
[[:Category:Scripting Commands VBS1|Scripting Commands for VBS1]] - Scripting Commands for '''VBS1'''.


 
[[Category:Arma 3: Editing]]
[[Category: ArmA: Editing]]
[[Category:ArmA 2: Editing]]
[[Category: ArmA 2: Editing]]
[[Category:ArmA: Editing]]
[[Category:Operation Flashpoint Elite: Editing]]
[[Category:Operation Flashpoint Elite: Editing]]
[[Category:Operation Flashpoint: Editing]]
[[Category:Operation Flashpoint: Editing]]

Revision as of 17:09, 25 April 2018

Introduction

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:

[argument] exec "myscript.sqs" (for SQS scripts)
nul = [argument] execVM "myscript.sqf" (for SQF scripts)

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.

Getting Started

For those looking to learn more about scripting, begin with the basic tutorial Arma: Introduction to Scripting.

Command Reference

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 Arma 2 vs VBS2 2 - List of commands that are in Arma 2 but not in VBS2 2.02.

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.

Scripting Commands for VBS1 - Scripting Commands for VBS1.

Subcategories

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

A

D

E

F

S