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.
Passing an empty array returns the current values without modifying them, so this commands works as both getter and setter.
Groups:
Sensors

Syntax

Syntax:
vehicle setTargetSize [visualTargetSize, irTargetSize, radarTargetSize]
Parameters:
vehicle: Object - a transport vehicle
visualTargetSize: Number - 0..2 value, set to -1 to disable override and use config values
irTargetSize: Number
radarTargetSize: Number
Return Value:
Array with previous [visualTargetSize, irTargetSize, radarTargetSize] values

Examples

Example 1:
private _previousSizes = vehicle player setTargetSize [0,0,0]; // set
Example 2:
private _currentSizes = vehicle player setTargetSize []; // get

Additional Information

See also:
getSensorTargets

Notes

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