HandlingGetPercentSubmerged

From Multi Theft Auto: Wiki
Revision as of 19:46, 27 March 2008 by Arc (talk | contribs) (New page: __NOTOC__ {{Server function}} Returns the percentage (a value between 0 and 100) that a vehicle gets submerged when it lands on the surface of water. ==Syntax== <syntaxhighlight lang="lua"> float handling...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Returns the percentage (a value between 0 and 100) that a vehicle gets submerged when it lands on the surface of water.

Syntax

float handlingGetPercentSubmerged ( handling theHandling )
float handlingGetPercentSubmerged ( int vehicleID )

Required Arguments

  • theHandling: the handling of which you want to get the submersion percentage, or
  • vehicleID: the vehicle ID of which you want to get the submersion percentage.

Returns

If you specified a handling element, returns its submersion percentage if one is set, or nil otherwise. If you specified a vehicle ID, returns the current submersion percentage for vehicles of that ID. Returns false in case of failure.

Example

See Also