Arma 3 Scripting

Command in Object Manipulation

sizeOf

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

Description

Returns the diameter of bounding sphere of the object of given classname in meters. If you need to estimate the size of the object more precisely, use boundingBox or boundingBoxReal.

Important

At least one object of the given classname has to be present in the current mission otherwise zero will be returned.

Syntax

sizeOf classname

Parameters:

Returns: Number - size returned is usually bigger than the biggest size of the object along any of the axes. For example if object is 10 x 4 x 5 the sizeOf value returned expected to be around 10.

Examples

Example 1

_dimension = sizeOf "M1Abrams"; // Returns 10.7833

See also

boundingBox · boundingBoxReal · boundingCenter