Function Index

Used to call the code parsed in the addaction argument.

Add backpack(s) to vehicle cargo.

Adds a magazine to the units rangefinder.

Adds an event handler with arguments.

Add an eventhandler to a class and all children.

Adds an action to the main display.

Registers an event handler for a specific CBA event.

Registers an event handler for a specific CBA event with arguments.

Add an item to a unit.

Add item(s) to vehicle cargo.

Adds or updates the keybind handler for a specified mod action, and associates a function with that keybind being pressed.

Adds or updates the keybind handler for a defined Fleximenu and creates that Fleximenu.

Adds an action to a keybind.

Adds an action to a keybind from config.

Add magazine to a vehicle/unit.

Add magazine(s) to a vehicle’s cargo.

Adds an event handler that executes code when a marker is created or deleted.

Adds a menu option to the ESC menu “Options” tab.

Add a handler that will execute every frame, or every x number of seconds.

Adds persistent action to the player.

Adds a player event handler.

Creates a new setting for that session.

Adds projectile tracking to a given unit or vehicle.

A function used to add a waypoint to a group.

Add a weapon to a unit.

Add weapon(s) to vehicle cargo.

Adds weapon to unit without attachments and without taking a magazine.

Reports namespaces created with CBA_fnc_createNamespace.

Returns the magazine of the units rangefinder.

Reports positions of the building including nearby custom building positions.

Checks if the unit can currently use a weapon.

Upper case the first letter of the string, lower case the rest.

Switches weapon accessories for the player.

Adds additional watch statements that are run on a remote target and have their values returned to the client.

Set magnification of the current optic of the unit.

Helper function used in config to set the magnification of a zooming optic.

Helper function used in config to remember the zeroing of a zooming optic.

Creates a transition between two states.

Adds a state to a state machine.

Creates a transition between two states.

Clockwork which runs all state machines.

Creates a state machine.

Creates a state machine from a config class.

Deletes a state machine.

Dumps the performance counters for each statemachine Requires `STATEMACHINE_PERFORMANCE_COUNTERS` in script_component.hpp Note that diag_tickTime has very limited precision; results may become more accurate with longer test runtime.

Manually triggers a transition.

Manually triggers a transition.

Creates a readable string representation of a state machine.

Manually updates the list of a state machine.

Changes the key of a key handler.

A function used to correctly clear all waypoints from a group.

Return all compatible weapon attachments.

Retrieves a list of magazines that are compatible with a weapon.

Compiles all Extended EventHandlers in given config.

Defines a function in mission namespace and prevents it from being overwritten.

Compiles a function into mission namespace and into ui namespace for caching purposes.

A function used to gather a list of all music classes

Creates a marker all at once.

Creates a namespace.

Creates a PFH object, that will execute code every frame, or every x number of seconds.

Create a trigger all at once.

Finds out the magazine ID of the currently loaded magazine of given unit.

Returns the controlled unit.

General Purpose Debug Message Writer

Reverse URL encoded text to readable text.

A function used to delete entities

Deletes a namespace created with CBA_fnc_createNamespace.

Deletes a PFH object that was previously created via CBA_fnc_createPerFrameHandlerObject

Creates namespace containing all variables stored in a CBA hash.

Executes a piece of code in unscheduled environment.

Drops an item.

Drops a magazine.

Drops a weapon.

Executes a code once in non sched environment on the next frame.

Filter each element of an array via a function.

Finds a string within another string.

A function used to find out the first entity of parsed type in a nearEntitys call

Find largest numeric value with index in an array.

Find smallest numeric value with index in an array.

A function used to return songs with given type and tags

A function that returns the index of the first empty (nil) entry in an array.

A function that returns the index of the first null entry in an array.

Returns the index of the first entry of the given type in an array.

Returns the index of the first entry of a given type in an array.

Handles firing a disposable weapon.

Formats time in seconds according to a format.

Formats a number to a minimum integer width and to a specific number of decimal places.

Returns active feature camera.

A function used to find out who is alive in an array or a group.

Used to determine which weapon unit is currently holding and return proper animation type.

Get default named argument from list.

A function used to return the differences between two arrays.

A function used to return the element counts in an array.

Used to determine the Aspect ratio of the screen.

Gets a configuration entry.

A function used to find out the distance between two positions.

A function used to find out which unit exactly fired.

Get current camera’s vertical field of view in radians and zoom.

A function used to find out the group of an object.

Finds out the actual ID number of a person within his group as assigned by the game and used in the squad leader’s command menu.

A function used to return the config of an item.

Checks if a particular mod has already registered a keybind handler for the specified action.

Finds out the magazine ID of all magazines of given type in the inventory of given unit.

A function used to return data from the given music class

A function used to return the config path of a music file

A function used to return the current time on playing music.

Gets the list of possible muzzles for a weapon.

Find out the nearest entity parsed in an array to a position.

Find the nearest building and number of building positions available.

Get ancestor class of a weapon or container which has no preset attachments/contents.

A function used to return the config of an object or class name.

A function used to get the position of an entity.

A function used to get the position of an item when passed as a string.

Returns existing group on side, or newly created group when not existent.

A function used to find the terrain profile between two positions

A function used to find out which config turret is turretpath.

Used to determine the UI size of the screen.

Get information about a unit’s stance and speed.

Get death animation for a unit.

Return the volume of the bounding box of an object’s model.

Gets the list of possible modes for a weapon.

Raises a CBA event on all machines, including the local one.

Raises a CBA event on all machines.

Executes code on given destinations.

Says sound on all clients.