SetNearClipPlane
From Onset Developer Wiki
Description
This function culls triangles in a certain distance. Useful for the first person mode to hide head attachments.
Syntax
SetNearClipPlane(radius)
Parameters
- This function has no parameters.
Return Value
- __EDIT_ME__
Example
function OnKeyPress(key)
if key == "P" then
local bEnable = not IsFirstPersonCamera()
EnableFirstPersonCamera(bEnable)
SetNearClipPlane(25)
end
end
AddEvent("OnKeyPress", OnKeyPress)