ResetCamera: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search
Automatyczna aktualizacja dokumentacji funkcji
 
Complete Lua function catalog
 
Line 28: Line 28:
* Experimental counterpart of <code>setCameraTarget</code>.
* Experimental counterpart of <code>setCameraTarget</code>.


[[Category:Lua Functions]]
[[Category:Server Functions]]
[[Category:Server Functions]]
[[Category:Camera Functions]]
[[Category:Camera Functions]]
[[Category:Experimental Lua API]]
[[Category:Experimental Lua API]]

Latest revision as of 09:54, 15 August 2026

resetCamera

Returns a player's camera to its normal local gameplay target.

Syntax

bool resetCamera(int playerId)

Parameters

Name Type Required Description
playerId int yes The connected player identifier.

Returns

Returns true when the reset request is accepted and queued; otherwise returns false.

Examples

End a scripted spectator view:

resetCamera(playerId)

Notes

  • Available only in server-side resource scripts.
  • Experimental counterpart of setCameraTarget.