GetCameraInterior: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
 (Added a server-side example.)  | 
				m (Removed page from "Needs example" category.)  | 
				||
| Line 39: | Line 39: | ||
==See Also==  | ==See Also==  | ||
{{Camera functions}}  | {{Camera functions}}  | ||
Revision as of 02:47, 31 May 2010
Returns the interior of the local camera (independent of the interior of the local player).
Syntax
Click to collapse [-]
Serverint getCameraInterior ( player thePlayer )
Required Arguments
thePlayer: the player whose camera interior you want to check.
Click to collapse [-]
Clientint getCameraInterior ( )
Required Arguments
None
Returns
Returns an integer indicating the camera's interior, false if the argument is invalid.
Example
This example outputs the interior the player's camera is in.
Click to collapse [-]
Serverfunction camInt(thePlayer,command)
	local interior = getCameraInterior(thePlayer)
	outputChatBox("The camera is in interior "..interior,thePlayer,255,255,0)
end
addCommandHandler("camera",camInt)
See Also
- fadeCamera
 - getCameraInterior
 - getCameraMatrix
 - getCameraTarget
 - setCameraInterior
 - setCameraMatrix
 - setCameraTarget