NAVIGATION
Wiki » Reference » console_ entities » console_generic2
ARTICLE
console_generic2
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
Geometry or a model for applying a GUI
entity color(k) will be passed to guis as gui_parm20-gui_parm22
Keys
| Key | Type | Default | Description |
|---|---|---|---|
| translate | bool | 1 | Whether the console text can be translated by talon (1) |
| offset_perch | var | 0 0 32 | Offset from origin of where talon perches (0 0 32) |
| noTalonTarget | bool | 0 | Whether talon should perch at this console (0) |
| noTalonSquawk | bool | 1 | Whether talon should squawk to alert the player to this console (0) |
| noDamage | bool | If set, damage has no effect on console (0) | |
| bindPerchSpot | bool | Whether to bind the perchspot to the console (in case it moves) | |
| health | var | 1 | the amount of damage the console can take before becoming damaged (1) |
| gui | gui | guis/generic_1.gui | gui to appear on this console |
| ai_can_use | bool | 1 | 1 = AI is allowed to USE this console, 0 = AI cannot use (1) |
| ai_use_anim | var | console | The anim mood to set on the AI user of this console. Ex: 'console' would play the anim 'console_use' ('console') |
| ai_use_time | var | 3.0 | Once the AI starts using this console, it will spend this many secs. at this console(3.0) |
| ai_reuse_wait | var | 5.0 | How many secs to wait before AI can use this console again (5) |
| ai_max_uses | bool | -1 | Number of times the AI is allowed to use this console. If <0, they can use it infinite amount of times. (-1) |
| ai_use_trigger_wait | var | 2.0 | How many secs to wait before firing this consoles triggers. (2) |
| ai_damage_disable_msgs | bool | TRUE if reaction msgs should be disabled when damaged. (0) | |
| gui_parm25 | bool | if on, makes gui one time only (0) | |
| gui_parm26 | var | Script function to call when turned on (only on some guis, generic_3) | |
| gui_parm27 | var | Script function to call when turned off (only on some guis, generic_3) | |
| gui_parm28 | bool | Initial state of gui, 0==off, 1==on (0) | |
| ai_player_use_disable_msgs | bool | TRUE if reaction msgs should be disabled when the player uses this console (1) | |
| timeEventsAlways | bool | If set, always generates time events, but more expensive. |
Editor
| Property | Value |
|---|---|
| Type | point entity |
| Spawn class | hhConsole -> idStaticEntity -> idEntity -> idClass |
| Inherits | func_console |
| Min | -5 -35 -30 |
| Max | 5 35 30 |
| Color | 0.15 0.7 0.15 |
Script events
| Event | Declared by |
|---|---|
| activate | hhConsole |
| talonaction | hhConsole |
| guiEvent | hhConsole |
| becomeNonSolid | hhConsole |
| 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
