getCameraClip
Client-side
Server-side
Shared
Pair: setCameraClip
This function checks if the camera will "collide" with any objects or vehicles in its way. Read more about this setCameraClip.
OOP Syntax Help! I don't understand this!
- Method:Camera.getClip(...)
Syntax
bool, bool getCameraClip ( )Returns
- bool: clip on objects
- bool: clip on vehicles
This function checks the clip status.
Code Examples
client
This function checks the clip status.
function checkClipStatus() local obj, veh = getCameraClip() outputChatBox("Your camera can" .. (veh and "" or "not") .. "see the vehicle interior at the moment!", 255, 0, 0, false) outputChatBox("Your camera can" .. (obj and "" or "not") .. "collide with objects at the moment!", 255, 0, 0, false)endaddEventHandler("clipstatus",checkClipStatus)See Also
Camera Functions
- fadeCamera
- getCamera
- getCameraClip
- getCameraDrunkLevel
- getCameraFieldOfView
- getCameraGoggleEffect
- getCameraInterior
- getCameraMatrix
- getCameraTarget
- getCameraViewMode
- resetShakeCamera
- setCameraClip
- setCameraDrunkLevel
- setCameraFieldOfView
- setCameraGoggleEffect
- setCameraInterior
- setCameraMatrix
- setCameraTarget
- setCameraViewMode
- shakeCamera