SetPedsLODDistance: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(change arg desc)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
{{Client function}}
{{Client function}}
{{New feature/item|3.0156|1.5.5|13771|This function sets the peds LOD distance.}}
{{New feature/item|3.0156|1.5.5|13771|This function sets the peds LOD distance.}}
[[File:Peds Lod Distance = 60.png|500px|thumb|right|60 units]]
[[File:Peds Lod Distance = 60.png|200px|thumb|right|60 units]]
[[File:Peds Lod Distance = 100.png|500px|thumb|right|100 units]]
[[File:Peds Lod Distance = 100.png|200px|thumb|right|100 units]]
[[File:Peds Lod Distance = 500.png|500px|thumb|right|500 units]]
[[File:Peds Lod Distance = 500.png|200px|thumb|right|500 units]]


==Syntax==  
==Syntax==  
Line 10: Line 10:


===Required arguments===  
===Required arguments===  
*'''distance:''' the new peds LOD distance. It must be between '''0''' and '''500'''. (Default for ''high_detail_peds'' on is '''500''', when off, it is '''60''').
*'''distance:''' the new peds LOD distance. This value is clamped to '''0''' '''500'''. (Default for ''high_detail_peds'' on is '''500''', when off, it is '''60''').


===Returns===
===Returns===

Latest revision as of 21:23, 7 October 2022

This function sets the peds LOD distance.

60 units
100 units
500 units

Syntax

bool setPedsLODDistance ( float distance )

Required arguments

  • distance: the new peds LOD distance. This value is clamped to 0500. (Default for high_detail_peds on is 500, when off, it is 60).

Returns

This function returns true if the argument is valid. Returns false otherwise.

Example

This example sets the peds LOD distance to 120.

setPedsLODDistance( 120 )

See also