Scripting Commands by Functionality: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (renames)
mNo edit summary
Line 14: Line 14:
(e.g. buttonAction, ctrlShow, lbPicture)
(e.g. buttonAction, ctrlShow, lbPicture)


==[[:Category:Command Group: Environment and Weather|Environment and Weather]]==
==[[:Category:Command Group: Environment|Environment]]==
'''Control the weather.'''
'''Control the environment's weather, time, etc.'''
(e.g. setFog, setRain)
(e.g. setFog, setRain)


Line 69: Line 69:
'''Commands that deal with the game as a whole.'''
'''Commands that deal with the game as a whole.'''
(e.g. benchmark, cadetMode, loadFile, saveGame)
(e.g. benchmark, cadetMode, loadFile, saveGame)
==[[:Category:Command Group: Time Functions|Time Functions]]==
'''Read and set the in-game time.'''
(e.g. accTime, skiptime, time)


==[[:Category:Command Group: Activators|Activators]]==
==[[:Category:Command Group: Activators|Activators]]==

Revision as of 00:03, 10 August 2006

Template:Stub

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.


Camera Control

Camera functions for intros, outros and cut-scenes. (e.g. camCreate, camSetDir)

GUI Control

Customize the look of the main menus in the game. (e.g. buttonAction, ctrlShow, lbPicture)

Environment

Control the environment's weather, time, etc. (e.g. setFog, setRain)

Groups

Read and set group formations and members. (e.g. formation, group, units)

Interaction

On-screen messages, dialogs, menus. (e.g. hint, titleText, showGps)

Markers

Set, define and use markers. (e.g. createMarker, getMarkerType, setMarkerPos)

Math

Boolean, basic math and trigonometry functions. (abs, atan, sin)

Mission Information

Read and set parameters for the current mission. (e.g. addRating, forceEnd, 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)

Radio Control

Control radio availability and messages. (e.g. enableRadio, groupChat, vehicleRadio)

Sides

Read and set unit affiliations. (e.g. captive, countEnemy, friendly)

Sounds

Contol in-game sounds. (e.g. fadeMusic, playSound, say)

System Commands

Commands that deal with the game as a whole. (e.g. benchmark, cadetMode, loadFile, saveGame)

Activators

Set, define and use Triggers and Event Handlers. (e.g. addEventHandler, createTrigger, setTriggerPos)

Unit Control

Controls the behaviour of your troops. (e.g. action, addWaypoint, commandFire, doMove, setHideBehind)

Vehicle Assignment

Vehicle related commands. (e.g. allowGetIn, assignAsCargo, moveInDriver)

Variables

Commands to handle arrays and other variables. (e.g. format, count, isNull, select)

Weapons

Weapon related commands. (e.g. addMagazine, ammo, weapons)