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



Introduced in

Version:1.40

Description

Description: Returns the defined weight for an object class (as defined in p3d model).
(Somewhat accurate weights are defined mostly for (physX) vehicles. Returned weights for static objects may be off significantly.)
Use getWeaponWeight for weapons.

Syntax

Syntax: weightOf object
Parameters:
Return Value: Number - object's weight in kg.

Examples

Examples:
_carKg = weightOf "VBS2_US_ARMY_M1078_D"
_carKg = weightOf typeOf myCar

Additional Information

See also: getWeaponWeight, volumeOf
Multiplayer: 
Problems: 

Notes