getCameraClip | Multi Theft Auto: Wiki Skip to content

getCameraClip

Client-side
Server-side
Shared

Pair: setCameraClip

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function checks if the camera will "collide" with any objects or vehicles in its way. Read more about this here.

Syntax

getCameraClip ( )

Code Examples

client

This function checks the clip status.

function checkClipStatus()
local obj, veh = Camera.getClip()
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)
end
addEventHandler("clipstatus",checkClipStatus)