GetCameraClip: Difference between revisions
Jump to navigation
Jump to search
(add page) |
mNo edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Client function}} | {{Client function}} | ||
__NOTOC__ | __NOTOC__ | ||
{{New feature/item|3.0141|1.4.1|6949|This function checks if the camera will "collide" with any objects or vehicles in its way. Read more about this [[here | {{New feature/item|3.0141|1.4.1|6949|This function checks if the camera will "collide" with any objects or vehicles in its way. Read more about this [[setCameraClip|here]].}} | ||
==Syntax== | ==Syntax== | ||
Line 26: | Line 26: | ||
==See Also== | ==See Also== | ||
{{Client camera functions}} | {{Client camera functions}} | ||
[[hu:getCameraClip]] | |||
[[RO:getCameraClip]] |
Latest revision as of 07:12, 10 October 2020
This function checks if the camera will "collide" with any objects or vehicles in its way. Read more about this here.
Syntax
bool, bool getCameraClip()
OOP Syntax Help! I don't understand this!
- Method: Camera.getClip(...)
- Counterpart: setCameraClip
Returns
- objects: if you want the camera to clip on objects.
- vehicles: if you want the camera to clip on vehicles.
Example
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)