SetNearClipPlane

From Onset Developer Wiki
Revision as of 09:24, 17 December 2019 by 28days (talk | contribs) (Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|This function culls triangles in a certain distance. Useful for the first person mode to hide head attachments.}} {{FuncSyntax...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
SetNearClipPlane

Type: Function
Context: Client
Introduced: v1.0

Description

This function culls triangles in a certain distance. Useful for the first person mode to hide head attachments.

Syntax

SetNearClipPlane()

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()
	end
end
AddEvent("OnKeyPress", OnKeyPress)

See also

Template:ClientPlayerFunctions