HandlingGetMass: Difference between revisions
Jump to navigation
Jump to search
(New page: __NOTOC__ {{Server function}} ==Syntax== <syntaxhighlight lang="lua"> </syntaxhighlight> ===Required Arguments=== ===Returns=== ==Example== <syntaxhighlight lang="lua"> --TODO </syntaxhighlight> ==See Also== {{Handling_functions}}) |
mNo edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server function}} | {{Server function}} | ||
Returns the mass that is saved in a handling element, or the mass of the vehicles of a certain ID. | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
float handlingGetMass ( handling theHandling ) | |||
float handlingGetMass ( int vehicleID ) | |||
</syntaxhighlight> | |||
===Required Arguments=== | ===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=== | ===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. | |||
==Example== | ==Example== |
Revision as of 19:17, 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.
Example
--TODO