Category: Player
/ View
Since engine version: 1.0 OC
SetViewOffset
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.
Returns false if the given player is invalid and true otherwise.
Syntax
bool SetViewOffset(int player, int x, int x);
Parameters
- player:
- Player whose view offset you want to change.
- x:
- X offset value in pixels.
- x:
- Y offset value in pixels.
See also: SetPlrView, ShakeViewport