isScriptCameraLeaseActive
Client-side
Reports whether the calling resource still owns the specified camera generation.
Syntax
bool isScriptCameraLeaseActive(int token)Arguments
tokenintGeneration token returned by acquireScriptCamera.
Returns
true only for the current generation and owner.
Ownership and lifecycle
Only one resource can own the global script camera. Neon rejects stale callbacks and releases ownership on stop, restart, disconnect, or an authoritative server camera RPC.
Where this comes from
SOURCECLuaCameraDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaCameraDefs.cpp INTRODUCED / EXTENDED28b42898bRead the commit and why the change was made RELATED CATEGORY HARNESS native-script-camera-test Category-level coverage · test-resources/native-script-camera-test
RELATED NEON APIS
Read the system guide → Continue exploring
← Back to the Neon Lua API · How Native script camera works →