HandlingSetPercentSubmerged: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Server function}} Sets what percentage of the vehicle will be submerged if it enters water. A percentage of 0 means that it will stand on top of the water surface, a value of 1...)
 
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Server function}}
{{Server function}}
{{Needs_Example}}
Sets what percentage of the vehicle will be submerged if it enters water. A percentage of 0 means that it will stand on top of the water surface, a value of 100 means that it will immediately sink.
Sets what percentage of the vehicle will be submerged if it enters water. A percentage of 0 means that it will stand on top of the water surface, a value of 100 means that it will immediately sink.


Line 9: Line 10:


===Required Arguments===
===Required Arguments===
*'''theHandling:''' the handling of which you want to change the center of mass.
*'''theHandling:''' the handling of which you want to change the submersion percentage.
*'''percentage:''' the submersion percentage, a value from 0-100.
*'''percentage:''' the submersion percentage, a value from 0-100.


Line 22: Line 23:
==See Also==
==See Also==
{{Handling_functions}}
{{Handling_functions}}
[[Category:Needs Example]]

Latest revision as of 12:52, 2 January 2014

Accessories-text-editor.png Script Example Missing Function HandlingSetPercentSubmerged needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.

Sets what percentage of the vehicle will be submerged if it enters water. A percentage of 0 means that it will stand on top of the water surface, a value of 100 means that it will immediately sink.

Syntax

bool handlingSetPercentSubmerged ( handling theHandling, float percentage )

Required Arguments

  • theHandling: the handling of which you want to change the submersion percentage.
  • percentage: the submersion percentage, a value from 0-100.

Returns

Returns true on success, false in case of failure.

Example

--TODO

See Also