Scripting Commands by Functionality: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (sorted)
Line 4: Line 4:
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.)
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.
Keep in mind that there can be cases where certain commands may appear in more than one category.
<div class="floating_box1">
==[[:Category:Command Group: Activators|Activators]]==
'''Set, define and use Triggers and Event Handlers.'''<br/>
(e.g. addEventHandler, createTrigger, setTriggerPos)
</div>


<div class="floating_box1">
<div class="floating_box1">
Line 9: Line 15:
'''Camera functions for intros, outros and cut-scenes.'''<br/>
'''Camera functions for intros, outros and cut-scenes.'''<br/>
(e.g. camCreate, camSetDir)
(e.g. camCreate, camSetDir)
</div>
<div class="floating_box1">
==[[:Category:Command Group: GUI Control|GUI Control]]==
'''Customize the look of the main menus in the game.'''<br/>
(e.g. buttonAction, ctrlShow, lbPicture)
</div>
</div>


Line 27: Line 27:
'''Read and set group formations and members.'''<br/>
'''Read and set group formations and members.'''<br/>
(e.g. formation, group, units)
(e.g. formation, group, units)
</div>
<div class="floating_box1">
==[[:Category:Command Group: GUI Control|GUI Control]]==
'''Customize the look of the main menus in the game.'''<br/>
(e.g. buttonAction, ctrlShow, lbPicture)
</div>
</div>


Line 102: Line 108:


<div class="floating_box1">
<div class="floating_box1">
==[[:Category:Command Group: Activators|Activators]]==
==[[:Category:Command Group: Unit Control|Unit Control]]==
'''Set, define and use Triggers and Event Handlers.'''<br/>
'''Controls the behaviour of your troops.'''<br/>
(e.g. addEventHandler, createTrigger, setTriggerPos)
(e.g. action, addWaypoint, commandFire, doMove, setHideBehind)
</div>
</div>


<div class="floating_box1">
<div class="floating_box1">
==[[:Category:Command Group: Unit Control|Unit Control]]==
==[[:Category:Command Group: Variables|Variables]]==
'''Controls the behaviour of your troops.'''<br/>
'''Commands to handle arrays and other variables.'''<br/>
(e.g. action, addWaypoint, commandFire, doMove, setHideBehind)
(e.g. format, count, isNull, select)
</div>
</div>


Line 117: Line 123:
'''Vehicle related commands.'''<br/>
'''Vehicle related commands.'''<br/>
(e.g. allowGetIn, assignAsCargo, moveInDriver)
(e.g. allowGetIn, assignAsCargo, moveInDriver)
</div>
<div class="floating_box1">
==[[:Category:Command Group: Variables|Variables]]==
'''Commands to handle arrays and other variables.'''<br/>
(e.g. format, count, isNull, select)
</div>
</div>



Revision as of 11:00, 12 December 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.

Activators

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

Camera Control

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

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)

GUI Control

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

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

Control 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)

Unit Control

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

Variables

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

Vehicle Assignment

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

Waypoints

Commands to handle waypoints.
(e.g. addWaypoint, deleteWaypoint)

Weapons

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