SetPlayerWeaponZoomFactor

This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports.
This article documents an ACS function which is only available in development builds of Zandronum 3.2 and newer.

int SetPlayerWeaponZoomFactor (int player, fixed zoom[, int flags])

Usage

Scales the player's weapon's FOV, similar to the   A_ZoomFactor DECORATE function.

Parameters

  • player: Player to change the zoom factor of.
  • zoom: The amount to zoom in or out. The player's FOV is divided by this value.
  • flags: Flags to modify the behavior of the zoom. Uses the same values as A_ZoomFactor.

Return value

Returns 1 on success, 0 on failure.

Examples

This article lists no examples, please add one.