GetCamera: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 26: | Line 26: | ||
==See Also== | ==See Also== | ||
{{Client camera functions}} | {{Client camera functions}} | ||
[[hu:getCamera]] |
Revision as of 13:39, 13 August 2018
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 )