Category: Player
/ View
Since engine version: 5.1 OC
| Flag | Description |
|---|---|
| PLRZOOM_Direct | The zoom does not scroll slowly towards the new value, but is set directly. |
| PLRZOOM_NoIncrease | The new zoom ranges are only to be set if they are smaller than the current values. |
| PLRZOOM_NoDecrease | The new zoom ranges are only to be set if they are greater than the current values. |
| PLRZOOM_LimitMin | Set the minimum limit for zooming. The player cannot zoom out further than this. |
| PLRZOOM_LimitMax | Set the maximum limit for zooming. The player cannot zoom in further than this. |
func InitializePlayer(int plr)
{
SetPlayerZoomByViewRange(plr, 1000, 0, PLRZOOM_LimitMin);
SetPlayerZoomByViewRange(plr, 1000, 0, PLRZOOM_LimitMax);
SetPlayerViewLock(plr, true);
return true;
}