Scripting Commands by Functionality: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Final cleaning)
Tag: Replaced
 
(67 intermediate revisions by 16 users not shown)
Line 1: Line 1:
{{Stub}}
#REDIRECT [[Category:Scripting Commands by Functionality]]
 
==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.
 
 
==[[:Category:Command Group: Camera Control|Camera Control]]==
'''Camera functions for intros, outros and cut-scenes.'''
(e.g. camCreate, camSetDir)
 
==[[:Category:Command Group: GUI Control|GUI Control]]==
'''Customize the look of 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)
 
==[[:Category:Command Group: Interaction|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]]==
'''Boolean, basic math and 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)
 
==[[:Category:Command Group: Object Information|Object Information]]==
'''Find out things about your troops and other objects.'''
(e.g. alive, combatMode, fuel, isEngineOn, nearestObject)
 
==[[:Category:Command Group: Object Manipulation|Object Manipulation]]==
'''Create and define troops and other objects.'''
(e.g. createVehicle, setBehaviour, setDamage)
 
==[[:Category:Command Group: Program Flow|Program Flow]]==
'''Commands to define loops, conditions, and jumps inside scripts.'''
(e.g. exec, do, forEach, goto)
 
==[[:Category:Command Group: Radio Control|Radio Control]]==
'''Control radio availability and messages.'''
(e.g. enableRadio, groupChat, vehicleRadio)
 
==[[:Category:Command Group: Sides|Sides]]==
'''Read and set unit affiliations.'''
(e.g. captive, countEnemy, friendly)
 
==[[:Category:Command Group: Sounds|Sounds]]==
'''Contol in-game sounds.'''
(e.g. fadeMusic, playSound, say)
 
==[[:Category:Command Group: System Commands|System Commands]]==
'''Commands that deal with the game as a whole.'''
(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: Triggers|Triggers]]==
'''Set, define and use triggers.'''
(e.g. addEventHandler, createTrigger, setTriggerPos)
 
==[[:Category:Command Group: Unit Control|Unit Control]]==
'''Controls the behaviour of your troops.'''
(e.g. action, addWaypoint, commandFire, doMove, setHideBehind)
 
==[[: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)
 
==[[:Category:Command Group: Weapons|Weapons]]==
'''Weapon related commands.'''
(e.g. addMagazine, ammo, weapons)

Latest revision as of 01:14, 26 December 2020