Difference between revisions of "DCS func getCargoWeight"

From DCS World Wiki - Hoggitworld.com
m (1 revision imported)
Line 34: Line 34:
[[DCS_Class_Static_Object|'''Static Object Class:''']] {{listofScriptingStaticFuncs}}
[[DCS_Class_Object|'''Object Functions:''']] {{listofScriptingObjectFuncs}}
[[DCS_Class_Object|'''Object Functions:''']] {{listofScriptingObjectFuncs}}

Latest revision as of 10:34, 4 September 2021

Scripting Root

Envrioment: Mission Scripting
Function: getCargoWeight Added with: 1.2.10
Member Of: Static Object
Syntax: number Static Object.getCargoWeight(Class Self )
Description: Returns the mass of a cargo object measured in kg.

Return Value: number
Return Example: 700
Related Functions: Static Object Class: getID, getLife, getCargoDisplayName, getCargoWeight, getDrawArgumentValue

Object Functions: isExist, destroy, getCategory, getTypeName, getDesc, hasAttribute, getName, getPoint, getPosition, getVelocity, inAir

Coalition Object Functions: getCoalition, getCountry

Notes: Can't be used to check IF an object is a cargo object. As of the simulator will crash if this function is passed a non cargo static object.