Arma 3 Scripting

BIN_fnc_getTXScanDrawData

  • Arma 3 v1.94

Function · Markdown · JSON · original wiki page

Description

Returns draw data for given TXScan

Note

This content is exclusive to the Arma 3 Contact Expansion.

Syntax

syntax inferred from the function header

[param0] call BIN_fnc_getTXScanDrawData

Parameters:

Returns: ARRAY in format [iconData, polygonData, triangleData, rectangleData, isDefaultPolygon] where: iconData: ARRAY - position in format [x,y,0] polygonData: ARRAY - array of polygon vertices, where each vertex is in format [x,y,0] triangleData: ARRAY - array of triangle vrtices, where each vertex is in format [x,y,0] rectangleData: ARRAY - bounding rectangle in format [center, a, b, angle] isDefaultPolygon: BOOL - if a scan polygon has not yet been calculated, this will be true

Examples

Example 1

"myScan" call BIN_fnc_getTXScanDrawData

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 draw data for given TXScan

Parameter(s):
    0: STRING - scan name

Returns:
    ARRAY in format [iconData, polygonData, triangleData, rectangleData, isDefaultPolygon] where:
        iconData: ARRAY - position in format [x,y,0]
        polygonData: ARRAY - array of polygon vertices, where each vertex is in format [x,y,0]
        triangleData: ARRAY - array of triangle vrtices, where each vertex is in format [x,y,0]
        rectangleData: ARRAY - bounding rectangle in format [center, a, b, angle]
        isDefaultPolygon: BOOL - if a scan polygon has not yet been calculated, this will be true

Example:
    "myScan" call BIN_fnc_getTXScanDrawData
*/