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
I
CBA_fnc_inArea
 INC
CBA_fnc_inheritsFrom
CBA_fnc_inject
 IS_ARRAY
 IS_BOOL
 IS_BOOLEAN
 IS_CODE
 IS_CONFIG
 IS_CONTROL
 IS_DISPLAY
 IS_FUNCTION
 IS_GROUP
 IS_INTEGER
 IS_LOCATION
 IS_NUMBER
 IS_OBJECT
 IS_SCALAR
 IS_SCRIPT
 IS_SIDE
 IS_STRING
 IS_TEXT
 IS_x
CBA_fnc_isAlive
CBA_fnc_isHash
 ISNILS
CBA_fnc_isTurnedOut
CBA_fnc_isUnitGetOutAnim
J
CBA_fnc_join
L
CBA_fnc_leftTrim
CBA_fnc_localEvent
CBA_fnc_log
 LOG
M
 Managing Deprecation
 Managing Function Parameters
CBA_fnc_mapDirTo
CBA_fnc_mapGridToPos
CBA_fnc_mapRelPos
 MESSAGE
N
CBA_fnc_nearPlayer
CBA_fnc_northingReversed
O
CBA_fnc_objectRandom
 OBSOLETE
 OBSOLETE_SYS
 Overview
P
 PARAMS_1(A)
 PARAMS_2(A,B)
 PARAMS_3(A,B,C)
 PARAMS_4(A,B,C,D)
 PARAMS_5(A,B,C,D,E)
 PARAMS_6(A,B,C,D,E,F)
 PARAMS_7(A,B,C,D,E,F,G)
 PARAMS_8(A,B,C,D,E,F,G,H)
 PARAMS_n
CBA_fnc_parseYAML
CBA_fnc_peek
CBA_fnc_players
CBA_fnc_polar2vect
 PUSH
R
CBA_fnc_randPos
CBA_fnc_readKeyFromConfig
CBA_fnc_realHeight
 REM
CBA_fnc_remoteEvent
CBA_fnc_removeDisplayHandler
CBA_fnc_removeEventHandler
CBA_fnc_removeKeyHandler
CBA_fnc_removeMagazine
CBA_fnc_removePerFrameHandler
CBA_fnc_removePlayerAction
CBA_fnc_removeWeapon
CBA_fnc_replace
 RETNIL
CBA_fnc_rightTrim
S
CBA_fnc_scaleVect
CBA_fnc_scaleVectTo
 SCRIPT
 script_macros_common.hpp
CBA_fnc_searchNearby
CBA_fnc_selectWeapon
CBA_fnc_setHeight
CBA_fnc_setMarkerPersistent
CBA_fnc_setPos
CBA_fnc_shuffle
CBA_fnc_simplifyAngle
CBA_fnc_simplifyAngle180
CBA_fnc_sortNestedArray
CBA_fnc_split
CBA_fnc_strLen
 SUB
CBA_fnc_switchPlayer
A function used to determine if a position is within a zone.
Increase a number by one.
Checks whether a config entry inherits, directly or indirectly, from another one.
Accumulates a value by passing elements of an array “through” a function.
Array
Boolean
UI display handle(synonym for IS_BOOL())
Code block (i.e a compiled function)
Configuration
UI control handle.
UI display handle.
A compiled function (synonym for IS_CODE())
Group.
Is a number a whole number?
World location.
A floating point number (synonym for IS_SCALAR())
World object.
Floating point number.
A script handle (as returned by execVM and spawn commands).
Game side.
World object.
Structured text.
Checking the data types of variables.
A function used to find out if the group or object is alive.
Check if a value is a Hash data structure.
Sets a variable with a value, but only if it is undefined.
Checks whether a unit is turned out in a vehicle or not.
Checks whether a unit is turned out in a vehicle or not.
Joins an array of values into a single string, joining each fragment around a separator string.
Trims white-space (space, tab, newline) from the left end of a string.
Raises a CBA event only on the local machine.
Logs a message to the RPT log.
Log a timestamped message into the RPT log.
Gets the direction between two map grid references.
Converts a 2, 4, 6, 8, or 10 digit grid reference into a Position.
Find a position relative to a known position on the map.
Message to add to the trace [String]
Check whether these are any players within a certain distance of a unit.
Checks if the maps northing is reversed (like Chernarus & Utes, or any map pre-OA)
Creates a “random” number 0-9 based on an object’s velocity
Replace a function, in the current component, that has become obsolete.
Replace a function that has become obsolete.
Get 1 parameter from the _this array (or _this if it’s not an array).
Get 2 parameters from the _this array.
Get 3 parameters from the _this array.
Get 4 parameters from the _this array.
Get 5 parameters from the _this array.
Get 6 parameters from the _this array.
Get 7 parameters from the _this array.
Get 8 parameters from the _this array.
Setting variables based on parameters passed to a function.
Parses a YAML file into a nested array/Hash structure.
Peek at variable on the server To receive the variable content back, you will have to [“cba_diagnostics_receive_peak”, {_this call myFunction}] call CBA_fnc_addEventHandler;
Get a list of current player objects.
Creates a vector based on a inputted magnitude, direction and elevation
Appends a single value onto the end of an ARRAY.
A function used to randomize a position around a given center Parameters: Marker, Object, Location, Group or Position, Radius Example: _position = [position, radius] call CBA_fnc_randPos Returns: Position - [X,Y,Z] Author: Rommel
Reads key setting from config
Real z coordinate of an object, for placing stuff on roofs, etc.
Remove an element from an array each time it occurs.
Raises a CBA event on all machines EXCEPT the local one.
Removes an action to a displayHandler
Removes an event handler previously registered with CBA_fnc_addEventHandler.
Removes an action to a keyhandler
Remove a magazine.
Remove a handler that you have added using CBA_fnc_addPerFrameHandler
Removes player action previously added with CBA_fnc_addPlayerAction.
Remove a weapon.
Replaces substrings within a string.
If a variable is undefined, return the value nil.
Trims white-space (space, tab, newline) from the right end of a string.
scales a specified vector by a specified factor.
scales a vector so that its new Magnitude is equivalent to a specified value.
Sets name of script (relies on PREFIX and COMPONENT values being #defined).
A general set of useful macro functions for use by CBA itself or by any module that uses CBA.
A function for a group to search a nearby building.
Selects weapon, if the player has the weapon, including correctly selecting a muzzle, if any.
A function used to set the height of an object Parameters: _object - Object or Location _height - Height in metres _type - Optional parameter, 0 is getpos, 1 is getpos ASL, 2 is getposATL (Default: 1) Example: [this, 10] call CBA_fnc_setHeight Returns: Nothing Author: Rommel
Sets or unsets JIP persistency on a global marker.
A function used to set the position of an entity.
Shuffles an array’s contents into random order, returning a new array.
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.
Used to sort a nested array from lowest to highest using quick sort based on the specified column, which must have numerical data.
Splits a string into substrings using a separator.
Counts the number of characters in a string.
Subtract a value from a number variable.
Switch player to another unit.
Close