func_forcefield
This is an entity on id Tech 4 engines, present on DOOM 3, Quake 4 and Prey. Below you can find its spawnflags, keys and editor settings for each game that defines it.
DOOM 3
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 |
1 .5 .3 |
Script events
| Event |
Declared by |
| activate |
idForceField |
| Toggle |
idForceField |
| 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 |
| setGui |
idEntity |
| precacheGui |
idEntity |
| getGuiParm |
idEntity |
| getGuiParmFloat |
idEntity |
| guiNamedEvent |
idEntity |
| remove |
idClass |
Quake 4
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 |
1 .5 .3 |
Script events
| Event |
Declared by |
| activate |
idForceField |
| Toggle |
idForceField |
| 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 |
Prey
A forcefield. Can only be traversed by the player in spirit walk mode. Triggering the entity will toggle the forcefield on and off.
Keys
| Key |
Type |
Default |
Description |
| positiveDir |
bool |
|
0 = push backwards. 1 = push forwards. Default: 1 |
| isSimpleBox |
bool |
1 |
Set to non-simple if you want real per-poly collision, but then you cannot bind to movers (default=1) |
Editor
| Property |
Value |
| Type |
brush entity |
| Spawn class |
hhForceField -> idEntity -> idClass |
| Color |
0.3 0.3 0.75 |
Script events
| Event |
Declared by |
| activate |
hhForceField |
| 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