|
|
(44 intermediate revisions by 16 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 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. | | | 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)
| | {{Table/RVScripting}} |
|
| |
|
| nul = <nowiki>[</nowiki>argument<nowiki>]</nowiki> [[execVM]] "myscript.sqf" (for [[SQF syntax|SQF]] scripts)
| | {{GameCategory|ofp| Editing}} |
| | | {{GameCategory|ofpe|Editing}} |
| 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]]'''
| | {{GameCategory|arma1| Editing}} |
| | | {{GameCategory|arma2|Editing}} |
| ==Command Reference==
| | {{GameCategory|arma3|Editing}} |
| The links below take you to the OFP Scripting Commands and related information.
| | [[Category:Take On Helicopters: Editing]] |
| | |
| [[:Category:Scripting Commands|Scripting Commands]] - '''Complete''' List of All Scripting Commands.
| |
| | |
| [[:Category:Scripting Commands ArmA|Scripting Commands for ArmA]] - Scripting Commands for '''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:Scripting Commands VBS2|Scripting Commands for VBS2]] - Scripting Commands for '''VBS2'''.
| |
| | |
| | |
| [[Category: ArmA: Editing]]
| |
| [[Category:Operation Flashpoint Elite: Editing]]
| |
| [[Category:Operation Flashpoint: Editing]] | |