HU/setCameraClip: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 3: | Line 3: | ||
This function sets if the camera will "collide" with any objects or vehicles in its way. This means that if object clip is enabled an object is in the way of where the camera actually wants to be, the camera will try to be in front of it. This function can disable that. | This function sets if the camera will "collide" with any objects or vehicles in its way. This means that if object clip is enabled an object is in the way of where the camera actually wants to be, the camera will try to be in front of it. This function can disable that. | ||
{{Note| This function doesn't fix the issue of camera clip not working on objects out of world bounds.}} | |||
==Szintaxis== | ==Szintaxis== |
Latest revision as of 10:31, 11 August 2019
This function sets if the camera will "collide" with any objects or vehicles in its way. This means that if object clip is enabled an object is in the way of where the camera actually wants to be, the camera will try to be in front of it. This function can disable that.
Szintaxis
bool setCameraClip ( [ bool objects = true, bool vehicles = true ] )
OOP Syntax Help! I don't understand this!
- Method: Camera.setClip(...)
- Counterpart: getCameraClip
Tetszőleges Paraméterek
- objects: Sets if you want the camera to clip on objects.
- vehicles: Sets if you want the camera to clip on vehicles.
Visszatérési érték
A visszatérési értéke mindig true.
Példa
Ez a példa lehetővé teszi, hogy keresztül nézzen az autókon.
function enableCameraThoughCars () setCameraClip (true,false) outputChatBox ("Your camera can see the vehicle interior now!",255,0,0,false) end addEventHandler ("onClientResourceStart",resourceRoot,enableCameraThoughCars)
Lásd még
- HU/fadeCamera
- HU/getCamera
- HU/getCameraClip
- HU/getCameraFieldOfView
- HU/getCameraGoggleEffect
- HU/getCameraInterior
- HU/getCameraMatrix
- HU/getCameraShakeLevel
- HU/getCameraTarget
- HU/getCameraViewMode
- HU/setCameraClip
- HU/setCameraFieldOfView
- HU/setCameraGoggleEffect
- HU/setCameraInterior
- HU/setCameraMatrix
- HU/setCameraShakeLevel
- HU/setCameraTarget
- HU/setCameraViewMode