HandlingGetMass
Jump to navigation
Jump to search
Returns the mass that is saved in a handling element, or the mass of the vehicles of a certain ID.
Syntax
float handlingGetMass ( handling theHandling ) float handlingGetMass ( int vehicleID )
Required Arguments
- theHandling: the handling element you want to get the mass of, or
- vehicleID: the vehicle ID you want to get the mass of.
Returns
If you specified a handling element, returns the mass of the handling if it was set, or nil if not. If you specified a vehicle ID, returns the mass the currently applies to vehicles of that ID. Returns false in case of failure.
Example
--TODO