A SetVisibleRotation

From ZDoom Wiki
Jump to: navigation, search

A_SetVisibleRotation(float anglestart[, float angleend[, float pitchstart[, float pitchend[, int flags[, int ptr]]]]]])

Usage

Sets the visibility of the sprite based on what angle and pitch the actor is viewed from.

Parameters

  • anglestart - The start of the angle range to see. Positive values turn it to the right, negative to the left.
  • angleend - The end of the angle range.
  • pitchstart - The start of the pitch range to see. Positive values means viewing it from lower to see it, negative means higher.
  • pitchend - The end of the pitch range.
  • flags - Can be combined with | symbol:
    • VRF_NOANGLESTART - The starting angle range will not be modified regardless of number input.
    • VRF_NOANGLEEND - The ending angle range will not be modified.
    • VRF_NOPITCHSTART - The starting pitch range will not be modified.
    • VRF_NOPITCHEND - The ending pitch range will not be modified.
    • VRF_NOANGLE - Implies VRF_NOANGLESTART|VRF_NOANGLEEND.
    • VRF_NOPITCH - Implies VRF_NOPITCHSTART|VRF_NOPITCHEND.
  • ptr - The Actor pointer to modify.

Examples

Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contibutions are greatly appreciated.