HandlingGetPercentSubmerged: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(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...)
 
(No difference)

Latest revision as of 19:46, 27 March 2008

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