SetViewOffset

Category: Player / View
Since engine version: 4.9.5.0 CE

Description

Moves the view of a player permanently by a given offset. Calling the function again will set a new offset. Calling the function with 0,0 parameters will reset to normal, centered view.

Syntax

BOOL SetViewOffset (int iPlayer, int iX, int iX);

Parameters

iPlayer:
Player whose view offset you want to change.
iX:
X offset value in pixels.
iX:
Y offset value in pixels.
See also: SetPlrView
PeterW, September 2004