GetCameraRotation: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:


<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
local function getCameraRotation ()
function getCameraRotation ()
     return getElementRotation(getCamera())
     return getElementRotation(getCamera()) --rx, ry, rz
end
end
</syntaxhighlight>  
</syntaxhighlight>  

Revision as of 00:27, 9 January 2018

Dialog-warning.png Warning: This function no longer exists. However, below is a function that achieves a similar result.
function getCameraRotation ()
    return getElementRotation(getCamera()) --rx, ry, rz
end

See Also