Scripting Commands by Functionality: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added 3DEN Category)
(Add SideTOC, flexboxes, and categories)
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Hatnote|See also: [[Functions by Functionality]]}}
{{Hatnote|See also: [[Functions by Functionality]]}}
==Introduction==
{{SideTOC}}
__NOEDITSECTION__
== 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.).
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 style="display: flex; align-content: flex-start; align-items: flex-start; justify-content: center; flex-wrap: wrap"><!-- flex container -->


<div class="floating-box cmd">
<div class="floating-box cmd">
Line 32: Line 37:


<div class="floating-box cmd">
<div class="floating-box cmd">
==[[:Category:Command Group: 3DEN|3DEN Editor]]==
==[[:Category:Command Group: Conversations|Conversations]]==
'''3D Editor commands.'''
'''bikb, topics, etc.'''
;e.g.
;e.g.
:[[get3DENCamera]]
:[[kbTell]]
:[[add3DENEventHandler]]
:[[kbWasSaid]]
:[[do3DENAction]]
</div>
</div>


Line 46: Line 50:
:[[curatorAddons]]
:[[curatorAddons]]
:[[assignCurator]]
:[[assignCurator]]
</div>
<div class="floating-box cmd">
==[[:Category:Command Group: Custom Panels|Custom Panels]]==
'''Commands to handle Custom Panels.'''
;e.g.
:[[infoPanel]]
:[[setInfoPanel]]
:[[enableInfoPanelComponent]]
</div>
<div class="floating-box cmd">
==[[:Category:Command Group: DLC|DLC]]==
'''DLC related commands.'''
;e.g.
:[[getDLCs]]
:[[getObjectDLCs]]
:[[isDLCAvailable]]
</div>
<div class="floating-box cmd">
==[[:Category:Command Group: 3DEN|Eden Editor]]==
'''3D Editor commands.'''
;e.g.
:[[get3DENCamera]]
:[[add3DENEventHandler]]
:[[do3DENAction]]
</div>
</div>


<div class="floating-box cmd">
<div class="floating-box cmd">
==[[:Category:Command Group: Editor Control|Editor Control]]==
==[[:Category:Command Group: Editor Control|Editor Control]]==
'''Functions to interact with editor.'''
'''Functions to interact with 2D editor.'''
;e.g.
;e.g.
:[[insertEditorObject]]
:[[insertEditorObject]]
Line 135: Line 166:
'''Commands that are specific to Multiplayer games.'''
'''Commands that are specific to Multiplayer games.'''
;e.g.
;e.g.
:[[enableTeamSwitch]]
:[[didJIP]]
:[[owner]]
:[[onPlayerConnected]]
:[[onPlayerConnected]]
</div>
</div>
Line 176: Line 208:
:[[groupChat]]
:[[groupChat]]
:[[vehicleRadio]]
:[[vehicleRadio]]
</div>
<div class="floating-box cmd">
==[[:Category:Command Group: Remote Control|Remote Control]]==
'''Manipulate and connect to UAVs or remote control units.'''
;e.g.
:[[connectTerminalToUAV]]
:[[remoteControl]]
:[[teamSwitch]]
</div>
<div class="floating-box cmd">
==[[:Category:Command Group: Ropes and Sling Loading|Ropes and Sling Loading]]==
'''Attach and detach ropes to objects, slingload and drop them.'''
;e.g.
:[[enableRopeAttach]]
:[[getSlingLoad]]
:[[ropes]]
</div>
</div>


Line 204: Line 254:
:[[loadFile]]
:[[loadFile]]
:[[saveGame]]
:[[saveGame]]
</div>
<div class="floating-box cmd">
==[[:Category:Command Group: Team Switch|Team Switch]]==
'''Everything to do with the Team Switch feature.'''
;e.g.
:[[enableTeamSwitch]]
:[[onTeamSwitch]]
:[[selectPlayer]]
:[[teamSwitch]]
</div>
</div>


Line 211: Line 272:
;e.g.
;e.g.
:[[accTime]]
:[[accTime]]
:[[setTimeMultiplier]]
:[[timeMultiplier]]
</div>
</div>


Line 241: Line 304:
:[[assignAsCargo]]
:[[assignAsCargo]]
:[[moveInDriver]]
:[[moveInDriver]]
</div>
<div class="floating-box cmd">
==[[:Category:Scripting Commands Vehicle Loadouts|Vehicle Loadout]]==
'''Vehicle loadout related commands.'''
;e.g.
:[[getCompatiblePylonMagazines]]
:[[getPylonMagazines]]
</div>
</div>


Line 269: Line 340:
</div>
</div>


__NOTOC__
</div><!-- end of flex container -->
__NOEDITSECTION__
 


[[Category:Scripting_Topics]]
[[Category:Scripting_Topics]]
[[Category:Arma 2: Editing]]
[[Category:Operation Flashpoint: Editing]]
[[Category:ArmA: Editing]]
[[Category:ArmA 2: Editing]]
[[Category:Take On Helicopters: Editing]]
[[Category:Arma 3: Editing]]
[[Category:Arma 3: Editing]]

Revision as of 00:42, 9 April 2019


Template:SideTOC

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

Conversations

bikb, topics, etc.

e.g.
kbTell
kbWasSaid

Curator (Zeus)

Setting up Zeus rules and interface.

e.g.
curatorAddons
assignCurator

Custom Panels

Commands to handle Custom Panels.

e.g.
infoPanel
setInfoPanel
enableInfoPanelComponent

DLC

DLC related commands.

e.g.
getDLCs
getObjectDLCs
isDLCAvailable

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 dialogs and 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

Math

Boolean, basic math and trigonometry functions.

e.g.
abs
atan
sin
Also:
 Math Commands

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.
didJIP
owner
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

Remote Control

Manipulate and connect to UAVs or remote control units.

e.g.
connectTerminalToUAV
remoteControl
teamSwitch

Ropes and Sling Loading

Attach and detach ropes to objects, slingload and drop them.

e.g.
enableRopeAttach
getSlingLoad
ropes

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


Team Switch

Everything to do with the Team Switch feature.

e.g.
enableTeamSwitch
onTeamSwitch
selectPlayer
teamSwitch

Time Functions

Read and set the in-game time.

e.g.
accTime
setTimeMultiplier
timeMultiplier

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

Vehicle Loadout

Vehicle loadout related commands.

e.g.
getCompatiblePylonMagazines
getPylonMagazines

Waypoints

Commands to handle waypoints.

e.g.
addWaypoint
deleteWaypoint

Weapon Pool

The Weapon Pool enables the player to use weapons from one mission in others.

e.g.
addMagazinePool
fillWeaponsFromPool
queryMagazinePool

Weapons

Weapon related commands.

e.g.
addMagazine
ammo
weapons