SetPedsLODDistance: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 16: Line 16:


==Example==
==Example==
This example doubles the peds LOD distance.
This example sets the peds LOD distance to 120.
<syntaxhighlight lang="lua">setPedsLODDistance( 120 )</syntaxhighlight>
<syntaxhighlight lang="lua">setPedsLODDistance( 120 )</syntaxhighlight>


==See also==
==See also==
{{Client world functions}}
{{Client world functions}}

Revision as of 23:15, 22 July 2018

This function sets the peds LOD distance.

Syntax

bool setPedsLODDistance ( float distance )

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).

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

Shared