HandlingGetMass: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 15: | Line 15: | ||
===Returns=== | ===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. | 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== | ==Example== |
Revision as of 19:28, 27 March 2008
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