setTargetSize

From Bohemia Interactive Community
Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.22.

Description

Description:
Sets target size (see irTargetSize and others from vehicle config) override on vehicle. Returns the previously active values. Note if the array is empty, it will only return the previous/current values, and not set new ones. So this also functions as a getter.
Groups:
Uncategorised

Syntax

Syntax:
vehicle setTargetSize [(visualTargetSize, irTargetSize, radarTargetSize)]
Parameters:
vehicle: Object - A transport vehicle
visualTargetSize: Number - -1 to disable override and use config values. Otherwise value between 0-2
irTargetSize: Number
radarTargetSize: Number
Return Value:
[visualTargetSize, irTargetSize, radarTargetSize] Array - the values before setting new sizes

Examples

Example 1:
_previous = vehicle player setTargetSize [0,0,0];
Example 2:
_sizes = vehicle player setTargetSize [];

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note