Category: Player
/ View
Since engine version: 1.0 OC
GetPlrViewMode
Description
Determines the current view mode of a player. The function returns the following values:
- 0: Cursor - The player view follows the currently selected clonk (see GetCursor).
- 1: Target - The player view follows the object set by SetPlrView. Also see GetPlrView.
- 2: Scroll - The player is scrolling his view using the mouse.
Syntax
int GetPlrViewMode(int player);
Parameter
- player:
- Number of the player whose view mode you want to determine.
Remark
As mouse scrolling behaviour differs on every computer, this function always returns -1 whenever in Record, Replay, or network game mode.
See also: GetPlrView, SetPlrView