NAVIGATION
Wiki » Reference » func_ entities » func_securitycamera
ARTICLE
func_securitycamera
This is an entity on id Tech 4 engines, present on DOOM 3 and Quake 4. Below you can find its spawnflags, keys and editor settings for each game that defines it.
DOOM 3
Security camera.
Orient the camera pointing at the start location
then it will sweep from that + sweepAngle and back.
Uses the following sound shaders
security_camera_moving - movement
security_camera_end - cam stops at edge of movement
security_camera_sight - sights player
security_camera_activate - goes into alert mode
See duffy/examples/securitycam.map for an example.
Keys
| Key | Type | Default | Description |
|---|---|---|---|
| sweepAngle | var | 90 | the amount of sweep. |
| health | var | 100 | health for camera. |
| scanFov | var | 90 | fov of view. |
| scanDist | var | 200 | how far the camera can see. |
| flipAxis | var | set to 1 to flip the model axis of the cam. | |
| modelAxis | var | 0, 1 or 2 based on which axis the source model was built on. | |
| sightTime | var | 5 | The time in seconds it takes to notice the player. |
| sightResume | var | 1.5 | The time it will resume scanning after seeing the player but has not activated. |
| sweepSpeed | var | 5 | Speed of sweep. |
| sweepWait | var | 0.5 | Delay at edge of sweep before reversing direction. |
| wait | var | 20 | Time it will hold after an alert status before resuming. |
Editor
| Property | Value |
|---|---|
| Type | point entity |
| Spawn class | idSecurityCamera -> idEntity -> idClass |
| Min | -4 -4 -4 |
| Max | 4 4 4 |
| Color | 1 .5 .3 |
Script events
| Event | Declared by |
|---|---|
| getName | idEntity |
| setName | idEntity |
| activateTargets | idEntity |
| numTargets | idEntity |
| getTarget | idEntity |
| randomTarget | idEntity |
| bindToJoint | idEntity |
| removeBinds | idEntity |
| bind | idEntity |
| bindPosition | idEntity |
| unbind | idEntity |
| setOwner | idEntity |
| setModel | idEntity |
| setSkin | idEntity |
| getShaderParm | idEntity |
| setShaderParm | idEntity |
| setShaderParms | idEntity |
| setColor | idEntity |
| getColor | idEntity |
| isHidden | idEntity |
| hide | idEntity |
| show | idEntity |
| cacheSoundShader | idEntity |
| startSoundShader | idEntity |
| startSound | idEntity |
| stopSound | idEntity |
| fadeSound | idEntity |
| getWorldOrigin | idEntity |
| setWorldOrigin | idEntity |
| getOrigin | idEntity |
| setOrigin | idEntity |
| getAngles | idEntity |
| setAngles | idEntity |
| getLinearVelocity | idEntity |
| setLinearVelocity | idEntity |
| getAngularVelocity | idEntity |
| setAngularVelocity | idEntity |
| getSize | idEntity |
| setSize | idEntity |
| getMins | idEntity |
| getMaxs | idEntity |
| touches | idEntity |
| setGuiParm | idEntity |
| setGuiFloat | idEntity |
| getNextKey | idEntity |
| setKey | idEntity |
| getKey | idEntity |
| getIntKey | idEntity |
| getFloatKey | idEntity |
| getVectorKey | idEntity |
| getEntityKey | idEntity |
| restorePosition | idEntity |
| distanceTo | idEntity |
| distanceToPoint | idEntity |
| startFx | idEntity |
| waitFrame | idEntity |
| wait | idEntity |
| hasFunction | idEntity |
| callFunction | idEntity |
| setNeverDormant | idEntity |
| setGui | idEntity |
| precacheGui | idEntity |
| getGuiParm | idEntity |
| getGuiParmFloat | idEntity |
| guiNamedEvent | idEntity |
| remove | idClass |
Quake 4
Security camera.
Orient the camera pointing at the start location
then it will sweep from that + sweepAngle and back.
Uses the following sound shaders
security_camera_moving - movement
security_camera_end - cam stops at edge of movement
security_camera_sight - sights player
security_camera_activate - goes into alert mode
See duffy/examples/securitycam.map for an example.
Keys
| Key | Type | Default | Description |
|---|---|---|---|
| sweepAngle | var | 90 | the amount of sweep. |
| health | var | 100 | health for camera. |
| scanFov | var | 90 | fov of view. |
| scanDist | var | 200 | how far the camera can see. |
| flipAxis | var | set to 1 to flip the model axis of the cam. | |
| modelAxis | var | 0, 1 or 2 based on which axis the source model was built on. | |
| sightTime | var | 5 | The time in seconds it takes to notice the player. |
| sightResume | var | 1.5 | The time it will resume scanning after seeing the player but has not activated. |
| sweepSpeed | var | 5 | Speed of sweep. |
| sweepWait | var | 0.5 | Delay at edge of sweep before reversing direction. |
| wait | var | 20 | Time it will hold after an alert status before resuming. |
Editor
| Property | Value |
|---|---|
| Type | point entity |
| Spawn class | idSecurityCamera -> idEntity -> idClass |
| Min | -4 -4 -4 |
| Max | 4 4 4 |
| Color | 1 .5 .3 |
Script events
| Event | Declared by |
|---|---|
| getName | idEntity |
| setName | idEntity |
| activateTargets | idEntity |
| numTargets | idEntity |
| getTarget | idEntity |
| randomTarget | idEntity |
| bindToJoint | idEntity |
| removeBinds | idEntity |
| bind | idEntity |
| bindPosition | idEntity |
| unbind | idEntity |
| setOwner | idEntity |
| setModel | idEntity |
| setSkin | idEntity |
| getShaderParm | idEntity |
| setShaderParm | idEntity |
| setShaderParms | idEntity |
| setColor | idEntity |
| getColor | idEntity |
| isHidden | idEntity |
| hide | idEntity |
| show | idEntity |
| cacheSoundShader | idEntity |
| startSoundShader | idEntity |
| startSound | idEntity |
| stopSound | idEntity |
| fadeSound | idEntity |
| getWorldOrigin | idEntity |
| setWorldOrigin | idEntity |
| getOrigin | idEntity |
| setOrigin | idEntity |
| getAngles | idEntity |
| setAngles | idEntity |
| getLinearVelocity | idEntity |
| setLinearVelocity | idEntity |
| getAngularVelocity | idEntity |
| setAngularVelocity | idEntity |
| getSize | idEntity |
| setSize | idEntity |
| getMins | idEntity |
| getMaxs | idEntity |
| touches | idEntity |
| setGuiParm | idEntity |
| setGuiFloat | idEntity |
| getNextKey | idEntity |
| setKey | idEntity |
| getKey | idEntity |
| getIntKey | idEntity |
| getFloatKey | idEntity |
| getVectorKey | idEntity |
| getEntityKey | idEntity |
| restorePosition | idEntity |
| distanceTo | idEntity |
| distanceToPoint | idEntity |
| startFx | idEntity |
| waitFrame | idEntity |
| wait | idEntity |
| hasFunction | idEntity |
| callFunction | idEntity |
| setNeverDormant | idEntity |
| clearSkin | idEntity |
| setContents | idEntity |
| getLastBlocker | idEntity |
| playEffect | idEntity |
| stopEffect | idEntity |
| stopAllEffects | idEntity |
| getHealth | idEntity |
| hideSurface | idEntity |
| showSurface | idEntity |
| guiEvent | idEntity |
| playbackCallback | idEntity |
| getBindMaster | idEntity |
| applyImpulse | idEntity |
| removeNullTargets | idEntity |
| isA | idEntity |
| isSameTypeAs | idEntity |
| matchPrefix | idEntity |
| clearTargetList | idEntity |
| appendTarget | idEntity |
| removeTarget | idEntity |
| setHealth | idEntity |
| remove | idClass |
Last changed Sep 21, 2026
