GetCamera: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{client function}} | {{client function}} | ||
__NOTOC__ | __NOTOC__ | ||
{{New items| | {{New items|3.0135|1.3.5| | ||
This function returns an [[element]] that corresponds to the game camera | This function returns an [[element]] that corresponds to the game camera | ||
}} | }} |
Revision as of 21:50, 5 July 2014
This function returns an element that corresponds to the game camera
Syntax
element getCamera ()
Returns
- Returns an element that corresponds to the game camera
Example
This example attaches (fixes) the camera to a vehicle
cam = getCamera() setElementPosition( cam, 0,0,0 ) -- Clear camera target myVehicle = getPedOccupiedVehicle(localPlayer) attachElements( cam, myVehicle, 0,-4,2, -20,0,0 )
See Also
- getCamera
- getCameraClip
- getCameraFieldOfView
- getCameraGoggleEffect
- getCameraViewMode
- setCameraClip
- setCameraFieldOfView
- setCameraGoggleEffect
- setCameraViewMode
- Shared
- fadeCamera
- getCameraInterior
- getCameraMatrix
- getCameraTarget
- setCameraInterior
- setCameraMatrix
- setCameraTarget