Function Index
$#! · 0-9 ·
A
·
B
·
C
·
D
·
E
·
F
·
G
·
H
·
I
·
J
· K ·
L
·
M
·
N
·
O
·
P
· Q ·
R
·
S
·
T
·
U
·
V
·
W
· X · Y · Z
S
CBA_fnc_
sanitizeHTML
CBA_fnc_
scaleVect
CBA_fnc_
scaleVectTo
CBA_fnc_
searchNearby
CBA_fnc_
select
CBA_fnc_
selectBest
CBA_fnc_
selectRandomArray
CBA_fnc_
selectWeapon
CBA_fnc_
serializeNamespace
CBA_fnc_
serverEvent
CBA_fnc_
setCallsign
CBA_fnc_
setHeight
CBA_fnc_
setLoadout
CBA_fnc_
setPos
CBA_fnc_
setVarNet
CBA_fnc_
shuffle
CBA_fnc_
simplifyAngle
CBA_fnc_
simplifyAngle180
CBA_fnc_
sortNestedArray
CBA_fnc_
split
CBA_fnc_
standardDeviation
CBA_fnc_
stopMusic
CBA_fnc_
strLen
CBA_fnc_
substr
CBA_fnc_
substring
CBA_fnc_
supportMonitor
CBA_fnc_
switchableAttachments
CBA_fnc_
switchPlayer
T
CBA_fnc_
targetEvent
CBA_fnc_
taskAttack
CBA_fnc_
taskDefend
CBA_fnc_
taskPatrol
CBA_fnc_
taskSearchArea
CBA_fnc_
test
CBA_fnc_
trim
CBA_fnc_
turretDir
CBA_fnc_
turretEvent
CBA_fnc_
turretPath
CBA_fnc_
turretPathWeapon
U
CBA_fnc_
uniqueUnitItems
V
CBA_fnc_
vect2Polar
CBA_fnc_
vectAdd
CBA_fnc_
vectCross
CBA_fnc_
vectCross2D
CBA_fnc_
vectDir
CBA_fnc_
vectDot
CBA_fnc_
vectElev
CBA_fnc_
vectMagn
CBA_fnc_
vectMagn2D
CBA_fnc_
vectMap3D
CBA_fnc_
vectRotate2D
CBA_fnc_
vectRotate3D
CBA_fnc_
vectSubtract
CBA_fnc_
vehicleRole
CBA_fnc_
viewDir
W
CBA_fnc_
waitAndExecute
CBA_fnc_
waitUntilAndExecute
CBA_fnc_
weaponComponents
CBA_fnc_
weaponEvents
CBA_fnc_
weekDay
Replaces all < > and & with HTML character codes.
scales a specified vector by a specified factor.
scales a vector so that its new Magnitude is equivalent to a specified value.
A function for a group to search a nearby building.
Select array elements for which the block returns true
Select best element from an array
Select a specified amount of elements from an array without picking the same element multiple times.
Selects a weapon including correctly selecting a weapon mode of specified.
Creates CBA hash containing all variables stored in a namespace.
Raises a CBA event on the server machine.
Set call sign of a group.
A function used to set the height of an object
Set a unit’s extended loadout Parameters: _unit - The unit to set the loadout on.
A function used to set the position of an entity.
Broadcast a object variable value to all machines.
Shuffles an array’s contents into random order.
Returns an equivalent angle to the specified angle in the range 0 to 360.
Returns an equivalent angle to the specified angle in the range -180 to 180.
Sorts the given nested array in either ascending or descending order based on the numerical value at specified index of sub arrays.
Splits a string into substrings using a separator.
Returns the standard deviation, a measure of the spread of a distribution, of the array elements.
A function used to stop any music playing.
Counts the number of characters in a string.
Retrieves a substring of this instance.
Extracts the index-based substring from a string.
Iterate through all vehicle classes and find those who don’t support extended event handlers.
Returns all attachments the item can eventually switch to.
Switch player to another unit.
Raises a CBA event on all machines where this object or at least one of these objects are local.
A function for a group to attack a parsed location.
A function for a group to defend a parsed location.
A function for a group to randomly patrol a parsed radius and location.
Given group will indefinitely randomly search the given marker/trigger area.
Runs unit tests for an addon or component.
Trims specified characters (all whitespace by default) from the both ends of a string.
Reports azimuth and inclination of a vehicles turret.
Raises a CBA event on the machine where the vehicle’s turret is local.
Get a unit’s turret path in the current vehicle.
Get the turret path belonging to a weapon of given vehicle.
Retrieves a unique list of items in the units inventory.
Converts a 3d vector to polar Parameters: _vx - vector direction in x _vy - vector direction in y _vz - vector direction in z
Returns the sum of two vectors.
Returns the cross product vector of two vectors.
Returns the cross product vector of two 2D vectors.
Returns the angle of a vector with the given i and k coordinates in the range 0 to 360.
Returns the dot product of two vectors.
Returns the angle of elevation of a 3D vector with the given i, j and k coordinates in the range -90 to 90.
Returns the magnitude of a 3D vector with the given i, j and k coordinates.
Returns the magnitude of a vector with the given i and k coordinates or the magnitude of the i and k components of a 3D vector.
Returns the resulting vector of the matrix-vector product.
Rotates a 2D vector around a given center.
Rotates the first vector around the second, clockwise by theta degrees.
Returns the difference of two vectors.
Get a unit’s role in its current vehicle.
Reports azimuth and inclination of a units head or weapon direction.
Executes a code once in unscheduled environment with a given game time delay.
Executes a code once in unscheduled environment after a condition is true.
Reports class name of base weapon without attachments and all attachments belonging to a pre equipped weapon.
Execute weapon events framework.
Calculates date’s day of the week using a modified Rata Die method with fractional years.
Copyright © CBA team and contributors · 2024 ·
Generated by Natural Docs
CBA
Community Base Addons
Overview
Index (Everything)
Index (Functions)
Index (Macros)
Project
Wiki
Reference
Forums
Issues
Download
Functions
Accessory
CBA_accessory_fnc_switchAttachment
CBA_fnc_addAttachmentCondition
CBA_fnc_switchableAttachments
Ai
CBA_fnc_addWaypoint
CBA_fnc_buildingPositions
CBA_fnc_clearWaypoints
CBA_fnc_searchNearby
CBA_fnc_taskAttack
CBA_fnc_taskDefend
CBA_fnc_taskPatrol
CBA_fnc_taskSearchArea
fnc_waypointGarrison
Arrays
CBA_fnc_filter
CBA_fnc_findMax
CBA_fnc_findMin
CBA_fnc_findNil
CBA_fnc_findNull
CBA_fnc_findTypeName
CBA_fnc_findTypeOf
CBA_fnc_getArrayDiff
CBA_fnc_getArrayElements
CBA_fnc_inject
CBA_fnc_insert
CBA_fnc_join
CBA_fnc_reject
CBA_fnc_select
CBA_fnc_selectBest
CBA_fnc_selectRandomArray
CBA_fnc_shuffle
CBA_fnc_sortNestedArray
CBA_fnc_standardDeviation
Common
CBA_fnc_actionArgument
CBA_fnc_addBackpackCargo
CBA_fnc_addBinocularMagazine
CBA_fnc_addItem
CBA_fnc_addItemCargo
CBA_fnc_addMagazine
CBA_fnc_addMagazineCargo
CBA_fnc_addPerFrameHandler
CBA_fnc_addPlayerAction
CBA_fnc_addWeapon
CBA_fnc_addWeaponCargo
CBA_fnc_addWeaponWithoutItems
CBA_fnc_allNamespaces
CBA_fnc_binocularMagazine
CBA_fnc_canAddItem
CBA_fnc_canUseWeapon
CBA_fnc_colorAHEXtoDecimal
CBA_fnc_colorARGBtoDecimal
CBA_fnc_colorHEXAtoDecimal
CBA_fnc_colorHEXtoDecimal
CBA_fnc_colorRGBAtoDecimal
CBA_fnc_colorRGBtoDecimal
CBA_fnc_compatibleMagazines
CBA_fnc_compileFinal
CBA_fnc_createMarker
CBA_fnc_createNamespace
CBA_fnc_createPerFrameHandlerObject
CBA_fnc_createTrigger
CBA_fnc_createUUID
CBA_fnc_cssColorToDecimal
CBA_fnc_cssColorToHEX
CBA_fnc_cssColorToTexture
CBA_fnc_currentMagazineIndex
CBA_fnc_currentUnit
CBA_fnc_deleteEntity
CBA_fnc_deleteNamespace
CBA_fnc_deletePerFrameHandlerObject
CBA_fnc_directCall
CBA_fnc_dropItem
CBA_fnc_dropMagazine
CBA_fnc_dropWeapon
CBA_fnc_escapeRegex
CBA_fnc_execAfterNFrames
CBA_fnc_execNextFrame
CBA_fnc_findEntity
CBA_fnc_getActiveFeatureCamera
CBA_fnc_getAlive
CBA_fnc_getAnimType
CBA_fnc_getArea
CBA_fnc_getArg
CBA_fnc_getConfigEntry
CBA_fnc_getDistance
CBA_fnc_getFirer
CBA_fnc_getGroup
CBA_fnc_getGroupIndex
CBA_fnc_getItemConfig
CBA_fnc_getMagazineIndex
CBA_fnc_getMuzzles
CBA_fnc_getNearest
CBA_fnc_getNearestBuilding
CBA_fnc_getNonPresetClass
CBA_fnc_getObjectConfig
CBA_fnc_getPos
CBA_fnc_getSharedGroup
CBA_fnc_getTerrainProfile
CBA_fnc_getTurret
CBA_fnc_getUnitAnim
CBA_fnc_getUnitDeathAnim
CBA_fnc_getVolume
CBA_fnc_getWeaponModes
CBA_fnc_headDir
CBA_fnc_inheritsFrom
CBA_fnc_isAlive
CBA_fnc_isPerson
CBA_fnc_isTerrainObject
CBA_fnc_isTurnedOut
CBA_fnc_isUnitGetOutAnim
CBA_fnc_mapDirTo
CBA_fnc_mapGridToPos
CBA_fnc_mapRelPos
CBA_fnc_modelHeadDir
CBA_fnc_nearPlayer
CBA_fnc_northingReversed
CBA_fnc_objectRandom
CBA_fnc_players
CBA_fnc_randomizeFacewear
CBA_fnc_randPos
CBA_fnc_randPosArea
CBA_fnc_realHeight
CBA_fnc_registerFeatureCamera
CBA_fnc_removeBackpackCargo
CBA_fnc_removeBinocularMagazine
CBA_fnc_removeItem
CBA_fnc_removeItemCargo
CBA_fnc_removeMagazine
CBA_fnc_removeMagazineCargo
CBA_fnc_removePerFrameHandler
CBA_fnc_removePlayerAction
CBA_fnc_removeWeapon
CBA_fnc_removeWeaponCargo
CBA_fnc_selectWeapon
CBA_fnc_setCallsign
CBA_fnc_setHeight
CBA_fnc_setPos
CBA_fnc_switchPlayer
CBA_fnc_turretDir
CBA_fnc_turretPath
CBA_fnc_turretPathWeapon
CBA_fnc_uniqueUnitItems
CBA_fnc_vehicleRole
CBA_fnc_viewDir
CBA_fnc_waitAndExecute
CBA_fnc_waitUntilAndExecute
CBA_fnc_weaponComponents
CBA_fnc_weekDay
Diagnostic
CBA_diagnostic_fnc_initTargetDebugConsole
CBA_fnc_addUnitTrackProjectiles
CBA_fnc_debug
CBA_fnc_removeUnitTrackProjectiles
CBA_fnc_test
Disposables
CBA_fnc_firedDisposable
Events
CBA_events_fnc_playerEvent
CBA_fnc_addBISEventHandler
CBA_fnc_addBISPlayerEventHandler
CBA_fnc_addDisplayHandler
CBA_fnc_addEventHandler
CBA_fnc_addEventHandlerArgs
CBA_fnc_addKeyHandler
CBA_fnc_addKeyHandlerFromConfig
CBA_fnc_addMarkerEventHandler
CBA_fnc_addPlayerEventHandler
CBA_fnc_changeKeyHandler
CBA_fnc_globalEvent
CBA_fnc_globalEventJIP
CBA_fnc_localEvent
CBA_fnc_ownerEvent
CBA_fnc_readKeyFromConfig
CBA_fnc_registerChatCommand
CBA_fnc_remoteEvent
CBA_fnc_removeBISPlayerEventHandler
CBA_fnc_removeDisplayHandler
CBA_fnc_removeEventHandler
CBA_fnc_removeGlobalEventJIP
CBA_fnc_removeKeyHandler
CBA_fnc_removeMarkerEventHandler
CBA_fnc_removePlayerEventHandler
CBA_fnc_serverEvent
CBA_fnc_targetEvent
CBA_fnc_turretEvent
CBA_fnc_weaponEvents
Hashes
CBA_fnc_deserializeNamespace
CBA_fnc_encodeJSON
CBA_fnc_hashCreate
CBA_fnc_hashEachPair
CBA_fnc_hashFilter
CBA_fnc_hashGet
CBA_fnc_hashHasKey
CBA_fnc_hashKeys
CBA_fnc_hashRem
CBA_fnc_hashSet
CBA_fnc_hashSize
CBA_fnc_hashValues
CBA_fnc_isHash
CBA_fnc_parseJSON
CBA_fnc_parseYAML
CBA_fnc_serializeNamespace
Joint Rails
CBA_fnc_compatibleItems
Keybinding
CBA_fnc_addKeybind
CBA_fnc_addKeybindToFleximenu
CBA_fnc_getKeybind
CBA_fnc_localizeKey
CBA_fnc_registerKeybind
CBA_fnc_registerKeybindModPrettyName
CBA_fnc_registerKeybindToFleximenu
Loadout
CBA_fnc_getLoadout
CBA_fnc_setLoadout
Modules
CBA_fnc_getPosFromString
CBA_fnc_moduleAttack
CBA_fnc_moduleDefend
CBA_fnc_modulePatrol
Music
CBA_fnc_compileMusic
CBA_fnc_findMusic
CBA_fnc_getMusicData
CBA_fnc_getMusicPath
CBA_fnc_getMusicPlaying
CBA_fnc_isMusicPlaying
CBA_fnc_playMusic
CBA_fnc_stopMusic
Network
CBA_fnc_globalExecute
CBA_fnc_globalSay
CBA_fnc_globalSay3d
CBA_fnc_publicVariable
CBA_fnc_setVarNet
Optics
CBA_optics_fnc_setOpticMagnification
CBA_optics_fnc_setOpticMagnificationHelper
CBA_optics_fnc_setOpticMagnificationHelperZeroing
Settings
CBA_fnc_addSetting
Statemachine
CBA_statemachine_fnc_addEventTransition
CBA_statemachine_fnc_addState
CBA_statemachine_fnc_addTransition
CBA_statemachine_fnc_clockwork
CBA_statemachine_fnc_create
CBA_statemachine_fnc_createFromConfig
CBA_statemachine_fnc_delete
CBA_statemachine_fnc_dumpPerformanceCounters
CBA_statemachine_fnc_getCurrentState
CBA_statemachine_fnc_manualTransition
CBA_statemachine_fnc_toString
CBA_statemachine_fnc_updateList
Strings
CBA_fnc_capitalize
CBA_fnc_decodeURL
CBA_fnc_find
CBA_fnc_floatToString
CBA_fnc_formatElapsedTime
CBA_fnc_formatNumber
CBA_fnc_leftTrim
CBA_fnc_prettyFormat
CBA_fnc_removeWhitespace
CBA_fnc_replace
CBA_fnc_rightTrim
CBA_fnc_sanitizeHTML
CBA_fnc_split
CBA_fnc_strLen
CBA_fnc_substr
CBA_fnc_substring
CBA_fnc_trim
Ui
CBA_fnc_addItemContextMenuOption
CBA_fnc_addPauseMenuOption
CBA_fnc_consumeItem
CBA_fnc_getAspectRatio
CBA_fnc_getFov
CBA_fnc_getUISize
CBA_fnc_notify
CBA_fnc_openLobbyManager
CBA_fnc_progressBar
CBA_fnc_renameInventoryItem
Vectors
CBA_fnc_matrixProduct3D
CBA_fnc_matrixTranspose
CBA_fnc_polar2vect
CBA_fnc_randomVector3D
CBA_fnc_scaleVect
CBA_fnc_scaleVectTo
CBA_fnc_simplifyAngle
CBA_fnc_simplifyAngle180
CBA_fnc_vect2Polar
CBA_fnc_vectAdd
CBA_fnc_vectCross
CBA_fnc_vectCross2D
CBA_fnc_vectDir
CBA_fnc_vectDot
CBA_fnc_vectElev
CBA_fnc_vectMagn
CBA_fnc_vectMagn2D
CBA_fnc_vectMap3D
CBA_fnc_vectRotate2D
CBA_fnc_vectRotate3D
CBA_fnc_vectSubtract
Xeh
CBA_fnc_addClassEventHandler
CBA_fnc_compileEventHandlers
CBA_fnc_compileFunction
CBA_fnc_isRecompileEnabled
CBA_fnc_isScheduled
CBA_fnc_supportMonitor
Macros
script_macros_common.hpp
script_macros_mission.hpp
Everything
Functions
Macros
Close