NAVIGATION
Wiki » Reference » func_ entities » func_spawner
ARTICLE
func_spawner
This is an entity on id Tech 4 engines, present on Quake 4. Below you can find its spawnflags, keys and editor settings for each game that defines it.
Quake 4
Spawns specified entities. Target any number of target_nulls as possible spawn locations.
All keys prefixed with 'spawn_' will be copied over directly without the spawn_ to newly created enemies.
Any fields on the target_nulls prefixed with 'spawn_' will also be copied over.
Keys
| Key | Type | Default | Description |
|---|---|---|---|
| def_spawn | var | set to the classname of the entity to be spawned (for example, 'def_spawn_1' 'monster_grunt') | |
| count | var | number of entities to spawn before being used up (defaults to -1 which means spawn there is no count limit) | |
| max_active | var | If there are more than this number of entities from this spawner active, spawning will pause. (Defaults to 4) | |
| delay | var | time between spawning (default to 2) | |
| auto_target | var | If set to 1, spawned enemies will automatically target their nearest foe (Defaults to 1) | |
| face_enemy | var | If set to 1, spawned enemies will be facing their enemy when they spawn in (Defaults to 0) | |
| call | var | Script function to be called at the time of spawn (the entity parameter will be the spawner itself) | |
| call_spawned | var | Script function to be called at the time of spawn (the entity parameter will be the spawned entity) | |
| script_used_up | var | Script function to be called when the spawner has exhausted its available enemies. | |
| skipVisible | var | If set to 1, spawn targets will be skipped if the player can see them (defaults to 1) | |
| trigger_only | var | If set to 1 the spawner will only spawn when triggered. Each trigger will spawn 1 enemy. | |
| waves | var | number of enemies to spawn simultaneously (default 1) | |
| remove | var | If set to 1 the spawner will be removed when triggered off. (defaults to 1) |
Editor
| Property | Value |
|---|---|
| Type | point entity |
| Spawn class | rvSpawner -> idEntity -> idClass |
| Min | -8 -8 -8 |
| Max | 8 8 8 |
| Color | .8 .8 1 |
Script events
| Event | Declared by |
|---|---|
| activate | rvSpawner |
| removeNullActiveEntities | rvSpawner |
| numActiveEntities | rvSpawner |
| getActiveEntity | rvSpawner |
| 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
