- Documentation
- Client functions
- updateCameraRender
Function
updateCameraRender
Requests one camera shot in the next frame (the image is in the texture 1-2 frames later).
Syntax
bool updateCameraRender(element camera)Arguments
cameraelement- The camera.
Returns
true on success.
Example
local cam = createCameraRender(512, 288, 0)
attachCameraRender(cam, localPlayer, 0, -4, 1.5)
bindKey("p", "down", function() updateCameraRender(cam) end)
See also
renderCameraMatrixTakes one shot from the given spot (likesetCameraRenderMatrixandupdateCameraRenderat once). The image appears in the texture 1-2 frames later; it also works at 0 shots per second.setCameraRenderFrameRateSets how many shots per second the camera takes (0-60; 0 = only on request).