SetCameraClip: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Undo revision 21631 by Sebassje (Talk) -- No Sebas)
(Just made the description a -bit- more useful. Probably needs some correcting.)
Line 1: Line 1:
{{Client function}}  
{{Client function}}  
__NOTOC__  
__NOTOC__  
This function ...
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.


==Syntax==  
==Syntax==  
Line 9: Line 11:


===Required Arguments===  
===Required Arguments===  
*'''objects:''' ...
*'''objects:''' Sets if you want the camera to clip on objects.
*'''vehicles:''' ...
*'''vehicles:''' Sets if you want the camera to clip on vehicles.


===Returns===
===Returns===
Returns always ''true''.
Always returns ''true''.


==Example==  
==Example==  

Revision as of 15:45, 2 October 2009

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.

Syntax

bool setCameraClip ( bool objects, bool vehicles ) 

Required Arguments

  • objects: Sets if you want the camera to clip on objects.
  • vehicles: Sets if you want the camera to clip on vehicles.

Returns

Always returns true.

Example

Click to collapse [-]
Client
-- TODO

See Also