- Documentation
- Shared functions
- getCameraTarget
Function
getCameraTarget
Returns the element the camera follows, or false when the camera is fixed.
Syntax
Server
element getCameraTarget(player thePlayer)Client
element getCameraTarget()Arguments
thePlayerplayer- The player (server only).
Returns
The element or false.
Example
if getCameraTarget() ~= localPlayer then
dxDrawText("Tryb obserwatora", 20, 20)
end