Scripting Commands by Functionality: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Updated layout to follow Command v Function v Tool site color scheme + Added Hatnote to "See also: Functions by Functionality" + Linked Math Commands as an "Also" in example list for Cat:Cmd Grp Math)
m (Final cleaning)
Tag: Replaced
 
(44 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Hatnote|See also: [[Functions by Functionality]]}}
#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.
 
<div class="floating-box cmd">
==[[:Category:Command Group: Activators|Activators]]==
'''Set, define and use Triggers and Event Handlers.'''
;e.g.
:[[addEventHandler]]
:[[createTrigger]]
:[[setTriggerArea]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Briefing|Briefing]]==
'''Objectives, tasks and notes.'''
;e.g.
:[[createSimpleTask]]
:[[setTaskState]]
:[[createDiaryRecord]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Camera Control|Camera Control]]==
'''Camera functions for intros, outros and cut-scenes.'''
;e.g.
:[[camCreate]]
:[[camSetDir]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Curator|Curator (Zeus)]]==
'''Setting up Zeus rules and interface.'''
;e.g.
:[[curatorAddons]]
:[[assignCurator]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Editor Control|Editor Control]]==
'''Functions to interact with editor.'''
;e.g.
:[[insertEditorObject]]
:[[updateObjectTree]]
:[[execEditorScript]]
:[[fromEditor]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Environment|Environment]]==
'''Control the environment's weather, time, etc.'''
;e.g.
:[[setFog]]
:[[setRain]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Groups|Groups]]==
'''Read and set group formations and members.'''
;e.g.
:[[formation]]
:[[group]]
:[[units]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: GUI Control|GUI Control]]==
'''Customize the look of the main menus in the game.'''
;e.g.
:[[buttonAction]]
:[[ctrlShow]]
:[[lbPicture]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Interaction|Interaction]]==
'''On-screen messages, dialogs, menus.'''
;e.g.
:[[hint]]
:[[titleText]]
:[[showGPS]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Locations|Locations]]==
'''Create, define, use and manipulate locations.'''
;e.g.
:[[createLocation]]
:[[nearestLocation]]
:[[setSize]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Markers|Markers]]==
'''Set, define and use markers.'''
;e.g.
:[[createMarker]]
:[[getMarkerType]]
:[[setMarkerPos]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Math|Math]]==
'''Boolean, basic math and trigonometry functions.'''
;e.g.
:[[abs]]
:[[atan]]
:[[sin]]
;Also&#58;
:&nbsp;[[Math Commands]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Mission Information|Mission Information]]==
'''Read and set parameters for the current mission.'''
;e.g.
:[[addRating]]
:[[forceEnd]]
:[[score]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Multiplayer|Multiplayer]]==
'''Commands that are specific to Multiplayer games.'''
;e.g.
:[[enableTeamSwitch]]
:[[onPlayerConnected]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Object Information|Object Information]]==
'''Find out things about your troops and other objects.'''
;e.g.
:[[alive]]
:[[combatMode]]
:[[fuel]]
:[[isEngineOn]]
:[[nearestObject]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Object Manipulation|Object Manipulation]]==
'''Create and define troops and other objects.'''
;e.g.
:[[createVehicle]]
:[[setBehaviour]]
:[[setDamage]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Program Flow|Program Flow]]==
'''Commands to define loops, conditions, and jumps inside scripts.'''
;e.g.
:[[exec]]
:[[do]]
:[[forEach]]
:[[goto]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Radio Control|Radio Control]]==
'''Control radio availability and messages.'''
;e.g.
:[[enableRadio]]
:[[groupChat]]
:[[vehicleRadio]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Sides|Sides]]==
'''Read and set unit affiliations.'''
;e.g.
:[[captive]]
:[[countEnemy]]
:[[friendly]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Sounds|Sounds]]==
'''Control in-game sounds.'''
;e.g.
:[[fadeMusic]]
:[[playSound]]
:[[say]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: System Commands|System Commands]]==
'''Commands that deal with the game as a whole.'''
;e.g.
:[[benchmark]]
:[[cadetMode]]
:[[loadFile]]
:[[saveGame]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Unit Control|Unit Control]]==
'''Controls the behaviour of your troops.'''
;e.g.
:[[action]]
:[[addWaypoint]]
:[[commandFire]]
:[[doMove]]
:[[setHideBehind]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Variables|Variables]]==
'''Commands to handle arrays and other variables.'''
;e.g.
:[[format]]
:[[count]]
:[[isNull]]
:[[select]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Vehicle Assignment|Vehicle Assignment]]==
'''Vehicle related commands.'''
;e.g.
:[[allowGetIn]]
:[[assignAsCargo]]
:[[moveInDriver]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Waypoints|Waypoints]]==
'''Commands to handle waypoints.'''
;e.g.
:[[addWaypoint]]
:[[deleteWaypoint]]
</div>
 
<div class="floating-box cmd">
==[[:Category:Command Group: Weapons|Weapons]]==
'''Weapon related commands.'''
;e.g.
:[[addMagazine]]
:[[ammo]]
:[[weapons]]
</div>
 
__NOTOC__
__NOEDITSECTION__
 
[[Category:Scripting_Topics]]
[[Category:Arma 2: Editing]]
[[Category:Arma 3: Editing]]

Latest revision as of 01:14, 26 December 2020