Arma 3 Scripting

BIN_fnc_getTerrainObjects

  • Arma 3 v1.94

Function · Markdown · JSON · original wiki page

Description

Returns terrain objects of the given type for the given area dimensions

Note

This content is exclusive to the Arma 3 Contact Expansion.

Syntax

syntax inferred from the function header

[param0, param1] call BIN_fnc_getTerrainObjects

Parameters:

Returns: ARRAY of objects

Examples

Example 1

["myArea", [player, 100], ["HOUSE", "TREE"]] call BIN_fnc_getTerrainObjects

Function header

The comment at the top of the function's file in the game; this page's params, syntax, returns, examples, description come from it.

/*
    Killzone_Kid

Description:
    Returns terrain objects of the given type for the given area dimensions

Parameter(s):
    0: ARRAY - area details in Area format (see BIS_fnc_getArea)
    1: ARRAY - types of terrain objects, for example ["HOUSE", "TREE"]

Returns:
    ARRAY of objects

Example:
    ["myArea", [player, 100], ["HOUSE", "TREE"]] call BIN_fnc_getTerrainObjects
*/