VBS2 Scripting Commands by Functionality
From Bohemia Interactive Community
Introduction
This page has been created to help you find the appropriate commands when you are dealing with specific scripting situations (e.g. all commands that have to do with triggers, or to control unit behaviour, etc.).
Keep in mind that there can be cases where certain commands may appear in more than one category.
Note that the lists contain from the library, as well as scripting commands. Functions can be identified by the prefix fn_vbs_. Using functions is different from scripting commands, please see for more info.
This list also contains all ArmA commands, as well as the ones specific to VBS2.
Activators
Set, define and use Triggers and Event Handlers.
(e.g. addEventHandler, createTrigger, setTriggerArea)
GUI Control
Customize the look of the main menus in the game.
(e.g. buttonAction, ctrlShow, lbPicture)
Locations
Create, define, use and manipulate locations.
(e.g. createLocation, nearestLocation, setSize)
Mission Information
Read and set parameters for the current mission.
(e.g. addRating, forceEnd, score)
Mission Review
AAR & other post-mission related commands.
(e.g. AARplay_(VBS2), VBS_addEvent_(VBS2), score)
Multiplayer
Commands that are specific to Multiplayer games.
(e.g. enableTeamSwitch, onPlayerConnected)
Object Information
Find out things about your troops and other objects.
(e.g. alive, combatMode, fuel, isEngineOn, nearestObject)
Object Manipulation
Create and define troops and other objects.
(e.g. createVehicle, setBehaviour, setDamage)
Program Flow
Commands to define loops, conditions, and jumps inside scripts.
(e.g. exec, do, forEach, goto)
System Commands
Commands that affect the whole game, as well as debug functions.
(e.g. benchmark, loadFile, saveGame, diag_client, setHit)
Unit Control
Controls the behaviour of your troops.
(e.g. action, addWaypoint, commandFire, doMove, setHideBehind)

