Arma 3 Scripting

BIN_fnc_isExtensionError

  • Arma 3 v1.94

Function · Markdown · JSON · original wiki page

Description

Checks the output of the array syntax of callExtension for an error. If an error is found, it is reported with BIS_fnc_error and the function returns true.

If the input is not an array of format [String, Number, Number], the function returns false without reporting anything.

Contact functions use it after every call to their extensions, e.g. BIN_fnc_addObjectsToArea and BIN_fnc_getObjectBoundingBarrel (extension "biext_collisions") or BIN_fnc_preInitEM and BIN_fnc_deleteAntenna (extension "biext_txscan"). It works with the output of any extension and can be used in scripts as well.

Note

This content is exclusive to the Arma 3 Contact Expansion.

Syntax

extensionOutput call BIN_fnc_isExtensionError

Parameters:

Returns: Boolean - true if an error was detected (and reported), otherwise false

Examples

Example 1

private _result = "biext_collisions" callExtension ["addObjectsToArea", _args];
if (_result call BIN_fnc_isExtensionError) exitWith { [0] }; // the error has already been reported
parseSimpleArray (_result select 0);

See also

callExtension · BIS_fnc_error