Scripting: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Stub}}
[[Armed Assault|Armed Assault's]] '''scripting language''' allows the user to control and influence the behaviour of the engine. It is in its structure similar to real programming languages. With the large amount of [[:Category:ArmA: Scripting Commands|scripting commands]] you can create dynamic processes happening during a mission. That is, for instance, a camera cutscene or custom interactions between the player and AI units. The scripting engine was designed to be very simple while remaining unlimiting for the editor.
[[Armed Assault|Armed Assault's]] '''scripting language''' allows the user to control and influence the behaviour of the engine. It is in its structure similar to real programming languages. With the large amount of [[:Category:ArmA: Scripting Commands|scripting commands]] you can create dynamic processes happening during a mission. That is, for instance, a camera cutscene or custom interactions between the player and AI units. The scripting engine was designed to be very simple while remaining unlimiting for the editor.


Line 16: Line 14:


This code is very simple: The [[:Category:ArmA: Scripting Commands|command]] [[hint]] displays the given text on the left upper side of the screen. The code is executed when the mission starts, since this is what the <tt>init</tt> line does.
This code is very simple: The [[:Category:ArmA: Scripting Commands|command]] [[hint]] displays the given text on the left upper side of the screen. The code is executed when the mission starts, since this is what the <tt>init</tt> line does.
== Learning Scripting - A Tutorial==
Read the following articles to learn more about [[Armed Assault|Armed Assault's]] scripting engine. If you know any real world programming languages, some things may sound familiar, others may not.
* [[ArmA: Introduction to Scripting|Introduction to Scripting]]
* [[ArmA: Script|Scripts]]
* [[ArmA: Function|Functions]]
* [[ArmA: Variables|Variables]]
* [[ArmA: Operators|Operators]]
* [[ArmA: Control Structures|Control Structures]]
* [[ArmA: Array|Arrays]]
* [[ArmA: Exception Handling|Exception Handling]]
You may read the articles in the given order like a '''book''' or '''tutorial'''. The "What's next?" sections on the bottom of every of these articles will point you to the following article in the tutorial.
== What's next? ==
Read the article '''Introduction to Scripting''' to get introduced into the scripting language. You will read, why one needs scripting at all and how the basics work.
[[ArmA: Introduction to Scripting|Introduction to Scripting >>]]


[[Category:ArmA: Scripting| ]]
[[Category:ArmA: Scripting| ]]

Revision as of 17:30, 20 December 2006

Armed Assault's scripting language allows the user to control and influence the behaviour of the engine. It is in its structure similar to real programming languages. With the large amount of scripting commands you can create dynamic processes happening during a mission. That is, for instance, a camera cutscene or custom interactions between the player and AI units. The scripting engine was designed to be very simple while remaining unlimiting for the editor.

Requirements

You don't need any requirements to learn using Armed Assault's scripting language. You should be familiar to mission editing though, as this is the base for any scripting needs.

Getting Started

The first little code in every programming language is usually a small "Hello World" program. It is meant just to display this simple text.

Open up the mission editor, create a custom unit for the player and write the following code into its init line:

hint "Hello World!"

This code is very simple: The command hint displays the given text on the left upper side of the screen. The code is executed when the mission starts, since this is what the init line does.

Learning Scripting - A Tutorial

Read the following articles to learn more about Armed Assault's scripting engine. If you know any real world programming languages, some things may sound familiar, others may not.

You may read the articles in the given order like a book or tutorial. The "What's next?" sections on the bottom of every of these articles will point you to the following article in the tutorial.

What's next?

Read the article Introduction to Scripting to get introduced into the scripting language. You will read, why one needs scripting at all and how the basics work.

Introduction to Scripting >>