Scripting Commands by Functionality: Difference between revisions
m (duplicate) |
(restructured with categories) |
||
Line 1: | Line 1: | ||
{{ | {{Stub}} | ||
}} | |||
==Introduction== | ==Introduction== | ||
Line 10: | Line 6: | ||
== | ==[[:Category:Command Group: Camera Control|Camera Control]]== | ||
'''Camera functions for intros and outros.''' | |||
(e.g. camCreate, camSetDir) | |||
== | ==[[:Category:Command Group: Dialogs Control|Dialogs Control]]== | ||
'''Customize the main menus in the game.''' | |||
(e.g. buttonAction, ctrlShow, lbPicture) | |||
== | ==[[:Category:Command Group: Environment and Weather|Environment and Weather]]== | ||
'''Control the weather.''' | |||
(e.g. setFog, setRain) | |||
== | ==[[:Category:Command Group: Groups|Groups]]== | ||
'''Read and set group formations and members.''' | |||
(e.g. formation, group, units) | |||
==GUI Interaction== | ==[[:Category:Command Group: GUI Interaction|GUI Interaction]]== | ||
'''On-screen messages, dialogs, menus.''' | |||
(e.g. hint, titleText, showGps) | |||
== | ==[[:Category:Command Group: Markers|Markers]]== | ||
'''Set, define and use markers.''' | |||
(e.g. createMarker, getMarkerType, setMarkerPos) | |||
== | ==[[:Category:Command Group: Math|Math]]== | ||
'''Mainly trigonometry functions.''' | |||
(abs, atan, sin) | |||
== | ==[[:Category:Command Group: Mission Information|Mission Information]]== | ||
'''Read and set parameters for the current mission.''' | |||
(e.g. addRating, forceEnd, score) | |||
== | ==[[:Category:Command Group: MP Control|MP Control]]== | ||
'''Commands that are specific to MultiPlayer games.''' | |||
(e.g. enableTeamSwitch, onPlayerConnected) | |||
==Object Information== | ==[[:Category:Command Group: Object Information|Object Information]]== | ||
'''Find out things about your troops and other objects.''' | |||
(e.g. alive, combatMode, fuel, isEngineOn, nearestObject) | |||
==Object Manipulation== | ==[[:Category:Command Group: Object Manipulation|Object Manipulation]]== | ||
'''Create and define troops and other objects.''' | |||
(e.g. action, createVehicle, setBehaviour, setDamage) | |||
==Program Flow== | ==[[:Category:Command Group: Program Flow|Program Flow]]== | ||
'''Commands to define loops, conditions, and jumps inside scripts.''' | |||
(e.g. exec, do, forEach, goto) | |||
==Radio Control== | ==[[:Category:Command Group: Radio Control|Radio Control]]== | ||
'''Control radio availability and messages.''' | |||
(e.g. enableRadio, groupChat, vehicleRadio) | |||
==Sides== | ==[[:Category:Command Group: Sides|Sides]]== | ||
'''Read and set unit affiliations.''' | |||
(e.g. captive, countEnemy, friendly) | |||
==Sounds | ==[[:Category:Command Group: Sounds|Sounds]]== | ||
'''Contol in-game sounds.''' | |||
(e.g. fadeMusic, playSound, say) | |||
==System Commands== | ==[[:Category:Command Group: System Commands|System Commands]]== | ||
'''Commands that deal with the game as a whole.''' | |||
(e.g. benchmark, cadetMode, loadFile, saveGame) | |||
==Time Functions== | ==[[:Category:Command Group: Time Functions|Time Functions]]== | ||
'''Read and set the in-game time.''' | |||
(e.g. accTime, skiptime, time) | |||
==Triggers== | ==[[:Category:Command Group: Triggers|Triggers]]== | ||
'''Set, define and use triggers.''' | |||
(e.g. addEventHandler, createTrigger, setTriggerPos) | |||
==Unit Control== | ==[[:Category:Command Group: Unit Control|Unit Control]]== | ||
'''Controls the behaviour of your troops.''' | |||
(e.g. commandFire, doMove, setHideBehind) | |||
==Vehicle Assignment== | ==[[:Category:Command Group: Vehicle Assignment|Vehicle Assignment]]== | ||
'''Vehicle related commands.''' | |||
(e.g. allowGetIn, assignAsCargo, moveInDriver) | |||
== | ==[[:Category:Command Group: Variables|Variables]]== | ||
'''Commands to handle arrays and other variables.''' | |||
(e.g. format, count, isNull, select) | |||
==Weapons== | ==[[:Category:Command Group: Weapons|Weapons]]== | ||
'''Weapon related commands.''' | |||
(e.g. addMagazine, ammo, weapons) |
Revision as of 16:57, 8 August 2006
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 and outros. (e.g. camCreate, camSetDir)
Dialogs Control
Customize the main menus in the game. (e.g. buttonAction, ctrlShow, lbPicture)
Environment and Weather
Control the weather. (e.g. setFog, setRain)
Groups
Read and set group formations and members. (e.g. formation, group, units)
GUI Interaction
On-screen messages, dialogs, menus. (e.g. hint, titleText, showGps)
Markers
Set, define and use markers. (e.g. createMarker, getMarkerType, setMarkerPos)
Math
Mainly trigonometry functions. (abs, atan, sin)
Mission Information
Read and set parameters for the current mission. (e.g. addRating, forceEnd, score)
MP Control
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. action, 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)
Time Functions
Read and set the in-game time. (e.g. accTime, skiptime, time)
Triggers
Set, define and use triggers. (e.g. addEventHandler, createTrigger, setTriggerPos)
Unit Control
Controls the behaviour of your troops. (e.g. 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)