Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.40

Description

Description: Returns the volume for an object class (X*Y*Z of its bounding box, excluding any proxies).
(Works fine for vehicles and objects, but not for units.)

Syntax

Syntax: volumeOf object
Parameters:
Return Value: Number - object's volume in m³.

Examples

Examples:
_carVol = volumeOf "VBS2_US_ARMY_M1078_D"
_carVol = volumeOf typeOf myCar

Additional Information

See also: weightOf
Multiplayer: 
Problems: 

Notes