NAVIGATION
Wiki » Reference » object_ entities » object_portal_small
ARTICLE
object_portal_small
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
Creates a portal when triggered
To have more than 1 portal in view, set skin to unique portal skin.
Keys
| Key | Type | Default | Description |
|---|---|---|---|
| cameraTarget | var | name of entity to use for remote view | |
| startActive | var | whether to auto-activate at startup | |
| noTeleport | var | whether to teleport objects that touch the portal | |
| skin | var | use when multiple portals in view (skins/portal2.skin, skins/portal3.skin) | |
| size | var | specifies the size of the portal collision volume (default: 64 64 64) | |
| shaderParm5 | var | 600 | specifies the far distance at which the portal will fade out (negative will guarantee the destination will never draw) |
| shaderParm6 | var | 400 | specifies the near distance at which the portal will fade out |
| closeDelay | var | 0 | the number of seconds to wait before automatically closing. 0 = Stay Open (default: 1) |
| buddy | var | the name of the other portal to link to. | |
| triggerOpening | var | name of entity to trigger when the portal starts opening | |
| triggerOpened | var | name of entity to trigger when the portal is opened | |
| triggerClosing | var | name of entity to trigger when the portal starts closing | |
| triggerClosed | var | name of entity to trigger when the portal is closed | |
| distanceToggle | var | if specified, the portal will be closed by default and pop open when a player is within this many units of it. | |
| distanceCull | var | cuts off the area portal for a given portal if player(s) are more than this many units from it (performance benefits). defaults to shaderParm5+4. |
Editor
| Property | Value |
|---|---|
| Type | point entity |
| Spawn class | hhPortal -> hhAnimatedEntity -> idAnimatedEntity -> hhRenderEntity -> idEntity -> idClass |
| Inherits | object_portal |
| Min | -8 -32 -32 |
| Max | 5 32 32 |
| Color | 0.15 0.7 0.15 |
Script events
| Event | Declared by |
|---|---|
| activate | hhPortal |
| showGlowPortal | hhPortal |
| hideGlowPortal | hhPortal |
| 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
