Arma 3 Scripting

Function in TXScan

BIN_fnc_cropTXScan

Also available as Markdown and JSON, or read the original wiki page.

Description

Crops given scan

Note

This content is exclusive to the Arma 3 Contact Expansion.

Syntax

syntax inferred from the function header

[param0, param1, param2, param3, param4] call BIN_fnc_cropTXScan

Parameters:

Returns: ARRAY - crop rectangle corners

Examples

Example 1

["MyScan", 100, 100, 1000, 500] call BIN_fnc_cropTXScan

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:
    Crops given scan

Parameter(s):
    0: STRING - scan name
    1: NUMBER - crop rectangle center X
    2: NUMBER - crop rectangle center Y
    3: NUMBER - crop rectangle center W
    4: NUMBER - crop rectangle center H

Returns:
    ARRAY - crop rectangle corners

Example:
    ["MyScan", 100, 100, 1000, 500] call BIN_fnc_cropTXScan
*/