GetPedsLODDistance

From Multi Theft Auto: Wiki
Revision as of 23:02, 22 July 2018 by Myonlake (talk | contribs) (Created page with "__NOTOC__ {{Client function}} <!-- {{New feature/item|3.0156|1.5.5|6948|This function gets the peds LOD distance.}} --> This function gets the peds LOD distance. Default is 6...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function gets the peds LOD distance. Default is 60.

Syntax

float getPedsLODDistance ( )

Returns

This function returns a float containing the peds LOD distance.

Example

This example adds a /testmynearclipdistance command which outputs different things deppending of the current near clip distance.

addCommandHandler( "getpedsloddistance",
    function( )
        local pedsLODDistance = getPedsLODDistance( )
        outputChatBox( pedsLODDistance == 60 and "Your peds LOD distance is normal." or ( pedsLODDistance > 60 and "You should be able to see peds farther." or "You shouldn't be able to see peds as far." ) )
    end
)

See also

Shared