GetPhysicsCameraNearClipPlane

Definition

double GetPhysicsCameraNearClipPlane()

Description

This function returns the near clip plane value of physics camera attached to the main character.

Return Value

The near clip plane of of physics camera attached to the main character as a Double value. This value is greater than 0.0.

Example

ncp = 0.0

function Init()
    ncp = GetPhysicsCameraNearClipPlane()

    message = string.format("\nNCP is : %.2f" ,ncp)
    PrintConsole(message)
end

function Update()

end
First we get the near clip plane value of the physics camera attached to the main character. Then we display the result in the console using PrintConsole function.
adminGetPhysicsCameraNearClipPlane