NAVIGATION
Wiki » Reference » object_ entities » object_droid_hatch
ARTICLE
object_droid_hatch
This is an entity on id Tech 4 engines, present on Prey. Below you can find its spawnflags, keys and editor settings for each game that defines it.
Prey
Droid hatch capable of spawning droids when triggered. Use auto_retrigger to close hatch and spawn more droids.
Keys
| Key | Type | Default | Description |
|---|---|---|---|
| max_monsters | var | 5 | The total number of encased monsters to spawn. -1 = infinite (1) |
| anim | var | open | The anim to play when the case is triggered. Ie. on the droid hatch this would be 'open' |
| anim_retrigger | var | close | The anim to play when the case is re-triggered. Ie. on the droid hatch this would be 'close' |
| def_monster | var | monster_droid | The monster def to spawn. For the droid hatch, this would be 'monster_droid' |
| anim_encased_monster_idle | var | droid_hatch_idle | The animation to play on the monster while it is encased. Ex: 'droid_hatch_idle' |
| anim_encased_monster_exit | var | droid_hatch_exit | The animation to play on the monster when it exits the case. Ex: 'droid_hatch_exit' |
| monster_offset | var | 64 0 0 | The offset relative to the case which determines the monsters encased position. |
| monster_hide | var | 1 | 1 = hide the encased monster prior to triggering him 0 = visible (0) |
| auto_retrigger_delay | var | 1 | -1 = Never retrigger, Greater than or equal to 0 = Seconds to wait before automatically retriggering this case. (-1) |
Editor
| Property | Value |
|---|---|
| Type | point entity |
| Spawn class | hhAISpawnCase -> hhAnimated -> idAnimated -> idAFEntity_Gibbable -> idAFEntity_Base -> hhAnimatedEntity -> idAnimatedEntity -> hhRenderEntity -> idEntity -> idClass |
| Inherits | object_ai_spawncase |
| Min | -64 -64 -64 |
| Max | 64 64 0 |
| Color | 0.5 1.0 0.5 |
Script events
| Event | Declared by |
|---|---|
| activate | hhAISpawnCase |
| setAnim | hhAnimated |
| isAnimDone | hhAnimated |
| footstep | hhAnimated |
| leftFoot | hhAnimated |
| rightFoot | hhAnimated |
| startRagdoll | idAnimated |
| launchMissiles | idAnimated |
| gib | idAFEntity_Gibbable |
| SetConstraintPosition | idAFEntity_Base |
| setAFCollision | idAFEntity_Base |
| spawnFXAlongBone | hhAnimatedEntity |
| getJointHandle | idAnimatedEntity |
| clearAllJoints | idAnimatedEntity |
| clearJoint | idAnimatedEntity |
| setJointPos | idAnimatedEntity |
| setJointAngle | idAnimatedEntity |
| getJointPos | idAnimatedEntity |
| getJointAngle | idAnimatedEntity |
| moveToJoint | idEntity |
| moveToJointWeighted | idEntity |
| moveJointToJoint | idEntity |
| moveJointToJointOffset | idEntity |
| setSkin | idEntity |
| spawnDebris | idEntity |
| delayDamageEntity | idEntity |
| dispose | idEntity |
| setDeformation | idEntity |
| setFloatKey | idEntity |
| setVectorKey | idEntity |
| setEntityKey | idEntity |
| playerCanSee | idEntity |
| setContents | idEntity |
| setClipmask | idEntity |
| setPortalCollision | idEntity |
| killbox | idEntity |
| getName | idEntity |
| setName | idEntity |
| findTargets | idEntity |
| activateTargets | idEntity |
| numTargets | idEntity |
| getTarget | idEntity |
| randomTarget | idEntity |
| bindToJoint | idEntity |
| removeBinds | idEntity |
| bind | idEntity |
| bindPosition | idEntity |
| unbind | idEntity |
| setOwner | idEntity |
| setModel | 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 |
| updateCameraTarget | idEntity |
| distanceTo | idEntity |
| distanceToPoint | idEntity |
| startFx | idEntity |
| waitFrame | idEntity |
| wait | idEntity |
| hasFunction | idEntity |
| callFunction | idEntity |
| setNeverDormant | idEntity |
| playRumble | idEntity |
| stopRumble | idEntity |
| remove | idClass |
Last changed Sep 21, 2026
