GetCamera

From Multi Theft Auto: Wiki
Revision as of 21:17, 18 December 2013 by Ccw (talk | contribs)
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.3.5 :

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 the camera to a vehicle

cam = getCamera()
myVehicle = getPedOccupiedVehicle(localPlayer)
attachElements( cam, myVehicle, 0,-4,2, -20,0,0 )

See Also