target_lock
This is an entity, present on RTCW Single Player, RTCW Multiplayer, Enemy Territory, DOOM 3, Quake 4 and Prey. Below you can find its spawnflags, keys and editor settings for each game that defines it.
RTCW Single Player
Sets the door to a state requiring key n
so: key:0 unlocks the door key:-1 locks the door until a target_lock with key:0 key:n means the door now requires key n
Keys
| Key |
Description |
| key |
is the required key |
Editor
| Property |
Value |
| Type |
point entity |
| Min |
-8 -8 -8 |
| Max |
8 8 8 |
| Color |
1 1 0 |
| Spawn function |
SP_target_lock |
RTCW Multiplayer
Sets the door to a state requiring key n
so: key:0 unlocks the door key:-1 locks the door until a target_lock with key:0 key:n means the door now requires key n
Keys
| Key |
Description |
| key |
is the required key |
Editor
| Property |
Value |
| Type |
point entity |
| Min |
-8 -8 -8 |
| Max |
8 8 8 |
| Color |
1 1 0 |
| Spawn function |
SP_target_lock |
Enemy Territory
Sets the door to a state requiring key n
so: key:0 unlocks the door key:-1 locks the door until a target_lock with key:0 key:n means the door now requires key n
Keys
| Key |
Description |
| key |
is the required key |
Editor
| Property |
Value |
| Type |
point entity |
| Min |
-8 -8 -8 |
| Max |
8 8 8 |
| Color |
1 1 0 |
| Spawn function |
SP_target_lock |
DOOM 3
Target an door to lock or unlock. Toggles door's lock state each time it's triggered.
Keys
| Key |
Type |
Default |
Description |
| locked |
var |
|
Value to set 'locked' to on doors. |
Editor
| Property |
Value |
| Type |
point entity |
| Spawn class |
idTarget_LockDoor -> idTarget -> idEntity -> idClass |
| Min |
-8 -8 -8 |
| Max |
8 8 8 |
| Color |
1 1 0 |
Script events
| Event |
Declared by |
| activate |
idTarget_LockDoor |
| 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
Target an door to lock or unlock. Toggles door's lock state each time it's triggered.
Keys
| Key |
Type |
Default |
Description |
| locked |
var |
|
Value to set 'locked' to on doors. |
Editor
| Property |
Value |
| Type |
point entity |
| Spawn class |
idTarget_LockDoor -> idTarget -> idEntity -> idClass |
| Min |
-8 -8 -8 |
| Max |
8 8 8 |
| Color |
1 1 0 |
Script events
| Event |
Declared by |
| activate |
idTarget_LockDoor |
| 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
Target an door to lock or unlock. Toggles door's lock state each time it's triggered.
Keys
| Key |
Type |
Default |
Description |
| locked |
var |
|
Value to set 'locked' to on doors. |
Editor
| Property |
Value |
| Type |
point entity |
| Spawn class |
hhTarget_LockDoor -> idTarget -> idEntity -> idClass |
| Min |
-8 -8 -8 |
| Max |
8 8 8 |
| Color |
1 1 0 |
Script events
| Event |
Declared by |
| activate |
hhTarget_LockDoor |
| 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 |