GetCamera: Difference between revisions
Jump to navigation
Jump to search
Dmitry7zip (talk | contribs) mNo edit summary |
|||
Line 22: | Line 22: | ||
attachElements( cam, myVehicle, 0,-4,2, -20,0,0 ) | attachElements( cam, myVehicle, 0,-4,2, -20,0,0 ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[ar:createMarker]] | |||
==See Also== | ==See Also== | ||
{{Client camera functions}} | {{Client camera functions}} |
Revision as of 17:37, 28 February 2017
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.
local cam = getCamera() setElementPosition( cam, 0,0,0 ) -- Clear camera target local 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