A SetVisibleRotation

From ZDoom Wiki
Jump to navigation Jump to search

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


Sets the visibility of the sprite based on what angle and pitch the actor is viewed from. Note that setting the angle parameters without explicitly specifying the pitch range does not work either (the actor will be completely invisible) (bug?).


  • 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.
  • ptr - The Actor pointer to modify.


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 contributions are greatly appreciated.