From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! Before you copy this actor's definition into your mod, remember the following things:
  1. You do NOT need to copy that actor, since it is already defined.
  2. In fact, it's not just useless, it will cause problems.
  3. If you want to modify it, or use a modified version, using inheritance is the way to go.
  4. The actor definitions here are put on the wiki for reference purpose only. Learn from them, don't copy them.
Security camera
Actor type Script thing Game MiniZDoomLogoIcon.png (ZDoom)
DoomEd Number 9025 Class Name SecurityCamera

Classes: SecurityCamera


The SecurityCamera is a camera that pans from side to side, much like the security camera in Duke Nukem 3D. It is a great addition to either a single player or multiplayer map.

Place the camera in the map and set the thing angle to point in the direction you want the camera to face. Set the three arguments of the camera and give the camera a unique TID.

The camera is activated by using the ChangeCamera (237) special or by a SetCameraToTexture in ACS.


The security camera takes three arguments:

  • args[0] → pitch of camera in degrees, equal to the angle subtracted from 256.
  • args[1] → number of degrees camera will rotate in either direction from its original orientation.
  • args[2] → number of octics to complete one cycle of turning.

DECORATE definition

ACTOR SecurityCamera native 
  RenderStyle None
  CameraHeight 0