Scripting Commands by Functionality: Difference between revisions
mNo edit summary |
m (Added Briefing) |
||
Line 8: | Line 8: | ||
'''Set, define and use Triggers and Event Handlers.'''<br/> | '''Set, define and use Triggers and Event Handlers.'''<br/> | ||
(e.g. [[addEventHandler]], [[createTrigger]], [[setTriggerArea]]) | (e.g. [[addEventHandler]], [[createTrigger]], [[setTriggerArea]]) | ||
</div> | |||
<div class="floating_box1"> | |||
==[[:Category:Command Group: Briefing|Briefing]]== | |||
'''Objectives, tasks and notes.'''<br/> | |||
(e.g. [[createSimpleTask]], [[setTaskState]], [[createDiaryRecord]]) | |||
</div> | </div> | ||
Revision as of 09:45, 29 July 2010
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, setTriggerArea)
Briefing
Objectives, tasks and notes.
(e.g. createSimpleTask, setTaskState, createDiaryRecord)
Camera Control
Camera functions for intros, outros and cut-scenes.
(e.g. camCreate, camSetDir)
Editor Control
Functions to interact with editor.
(e.g. insertEditorObject, updateObjectTree, execEditorScript, fromEditor)
Environment
Control the environment's weather, time, etc.
(e.g. setFog, setRain)
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)
Locations
Create, define, use and manipulate locations.
(e.g. createLocation, nearestLocation, setSize)
Markers
Set, define and use markers.
(e.g. createMarker, getMarkerType, setMarkerPos)
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)
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)
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)