Scripting Topics – Category

From Bohemia Interactive Community
Jump to navigation Jump to search
m (bah, ArmA: Editing)
(category cleanup, added SQF example/references)
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.  
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.  


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


  this [[exec]] "myscript.sqs"
  <nowiki>[</nowiki>argument<nowiki>]</nowiki> [[exec]] "myscript.sqs" (for [[SQS syntax|SQS]] scripts)


As there is a very keen interest in the newly added '''Armed Assault''' scripting commands, the following list was created so that fans could easily find these new commands. See [[:Category:Armed Assault: New Scripting Commands List|New Scripting Commands List]]
nul = <nowiki>[</nowiki>argument<nowiki>]</nowiki> [[execVM]] "myscript.sqf" (for [[SQF syntax|SQF]] scripts)


===Command Reference===
As there is a very keen interest in the newly added Armed Assault scripting commands, the following list was created so that fans could easily find these new commands: '''[[:Category:Armed Assault: New Scripting Commands List|ArmA: New Scripting Commands]]'''
 
==Command Reference==
The links below take you to the OFP Scripting Commands and related information.
The links below take you to the OFP Scripting Commands and related information.


Line 25: Line 27:


----
----
<center>
[[:Category:Arrays|Arrays]] | [[CfgVehicles]] | [[:Category: Types|Types]] | [[:Category: Weapons|Weapons]] | [[:Category: Common Scripting Errors|Common Scripting Errors]]
</center>
----
===History===
Original information came from the [http://www.flashpoint1985.com/docs/comref_102002/comref.html Operation Flashpoint Command Reference (COMREF)], additional information such as examples and comments have been added to this Wiki version.


[[Category: ArmA: 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 04:20, 31 January 2007

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.

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 Armed Assault scripting commands, the following list was created so that fans could easily find these new commands: ArmA: New Scripting Commands

Command Reference

The links below take you to the OFP 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 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.



Subcategories

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

A

D

E

F

S