HOME

PROFILE avatar
HOME

Introduction

I this part we are going to show you how to do Arma 3 scripting.

From the simple Basics to really complicated Scripts.

We are counting on that you already know how to use modules and triggers. If you don't know how to use them and how they work you should go right to the BASICS section.


Basics of Scripting

Arma 3 uses ASL (Arma Scripting Language) scripting language, it's a case sensitive C-style scripting language compiled to SQF. ASL is intended to simplify Arma 3 mod and mission development and eliminate the pain of SQF's bad syntax.


Event Scripts

Event Scripts are scripts executed upon specific events.

There are many types of events:

  1. init scripts
    • init.sqf - Script will be executed when mission the starts.
    • initServer.sqf - Script will be executed when server mission the starts.
    • init3DEN.sqf - Script will be executed when loading scenario in Eden Editor.
    • initIntro.sqf - Script will be executed when intro or outro starts.
    • initPlayerLocal.sqf - Script will be executed when the player joins the mission.
  2. Player scripts
    • onPlayerKilled.sqf - Script will be executed when the player gets killed.
    • onPlayerRespawn.sqf - Script will be executed when the player respawns.
  3. other scripts
    • exit.sqf - Script will be executed when the mission is finished (before debriefing).
    • pauseOnLoad.sqf - Script will be executed when the pause menu is activated.

File description.ext

The Description.ext is used to set the overall mission attributes or to define global entities that will be available for other scripts. It is placed in the mission root folder and uses the same syntax as the config.cpp file, but supports only a limited number of config classes.