NAVIGATION
Wiki » Reference » func_ entities » func_idforcefield
ARTICLE
func_idforcefield
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
Force field.
Keys
| Key | Type | Default | Description |
|---|---|---|---|
| target | var | Target entity. If set the force field is uniform in the direction of the target, the magnitude of the force equals the distance to the target. | |
| uniform | var | 3D force vector. If set the force field is uniform, magnitude of the force equals the length of the vector. | |
| explosion | var | Magnitude of explosive force. If set the field exerts a repelling force from the entity origin. | |
| implosion | var | Magnitude of implosive force. If set the field exerts a force that gravitates to the entity origin. | |
| randomTorque | var | 0 | Amount of random torque added to objects inside or touching the force field. |
| applyForce | bool | If set apply a force. | |
| applyVelocity | bool | If set apply a velocity. | |
| applyImpulse | bool | If set apply an impulse. | |
| playerOnly | bool | Force field only works for players. | |
| monsterOnly | bool | Force field only works for monsters. | |
| start_on | bool | 0 | By default the force field is off until activated. If 'start_on' is set to '1' the force field starts on. |
| wait | var | If unequal zero the force field automatically switches back to the previous state (on/off) after 'wait' seconds. |
Editor
| Property | Value |
|---|---|
| Type | brush entity |
| Spawn class | idForceField -> idEntity -> idClass |
| Color | 0.3 0.3 0.75 |
Script events
| Event | Declared by |
|---|---|
| activate | idForceField |
| Toggle | idForceField |
| findTargets | idForceField |
| 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 |
| 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
