Script events (Doom 3)
- System Events
- Entity Events
- idActor Events
- idAFEntity_ClawFourFingers Events
- idAI Events
- idAnimated Events
- idAnimatedEntity Events
- idCameraAnim Events
- idCombatNode Events
- idDoor Events
- idForcefield Events
- idLight Events
- idMoveable Events
- idMover Events
- idPlayer Events
- idProjectile Events
- idWeapon Events
- Utility Functions
The information on this page is specific to Doom 3 .
Script events are commands used in Doom 3’s native scripting language.
Existing script events as of version 1.3.1302 (1.3).
System Events
Events declared in idThread , accessible via sys identifier.
- angToForward
- angToRight
- angToUp
- assert
- clearPersistantArgs
- clearSignalThread
- copySpawnArgs
- cos
- CrossProduct
- debugArrow
- debugBounds
- debugCircle
- debugLine
- DotProduct
- drawText
- error
- fadeIn
- fadeOut
- fadeTo
- firstPerson
- getcvar
- getEntity
- getFrameTime
- getPersistantFloat
- getPersistantString
- getPersistantVector
- getTicsPerSecond
- getTime
- getTraceBody
- getTraceEndPos
- getTraceEntity
- getTraceFraction
- getTraceJoint
- getTraceNormal
- influenceActive
- isClient
- isMultiplayer
- killthread
- music
- onSignal
- pause
- println
- radiusDamage
- random
- respawn
- say
- setCamera
- setcvar
- setPersistantArg
- setSpawnArg
- sin
- spawn
- SpawnFloat
- SpawnString
- SpawnVector
- sqrt
- strLeft
- strLength
- strMid
- strRight
- strSkip
- strToFloat
- terminate
- threadname
- trace
- tracePoint
- trigger
- vecLength
- vecNormalize
- VecToAngles
- wait
- waitFor
- waitForThread
- waitFrame
- warning
Entity Events
Events declared in the base spawn class idEntity
All entities have these events.
- activate
- activateTargets
- bind
- bindPosition
- bindToJoint
- cacheSoundShader
- callFunction
- clearSignal
- distanceTo
- distanceToPoint
- fadeSound
- getAngles
- getAngularVelocity
- getColor
- getEntityKey
- getFloatKey
- getIntKey
- getKey
- getLinearVelocity
- getMaxs
- getMins
- getName
- getNextKey
- getOrigin
- getShaderParm
- getSize
- getTarget
- getVectorKey
- getWorldOrigin
- hasFunction
- hide
- isHidden
- numTargets
- randomTarget
- remove
- removeBinds
- restorePosition
- setAngles
- setAngularVelocity
- setColor
- setGuiFloat
- setGuiParm
- setKey
- setLinearVelocity
- setModel
- setName
- setNeverDormant
- setOrigin
- setOwner
- setShaderParm
- setShaderParms
- setSize
- setSkin
- setWorldOrigin
- show
- startFx
- startSound
- startSoundShader
- stopSound
- touches
- unbind
- wait
- waitFrame
idActor Events
Events declared in the spawn class idActor
- animDistance
- animLength
- animState
- checkAnim
- chooseAnim
- closestEnemyToPoint
- disableEyeFocus
- disablePain
- enableAnim
- enableEyeFocus
- enablePain
- finishAction
- getAnimState
- getHead
- getPainAnim
- getState
- hasAnim
- hasEnemies
- idleAnim
- inAnimState
- nextEnemy
- overrideAnim
- preventPain
- setAnimPrefix
- SetConstraintPosition
- setNextState
- setState
- setSyncedAnimWeight
- stopAnim
idAFEntity_ClawFourFingers Events
Events declared in the spawn class idAFEntity_ClawFourFingers
idAI Events
Events declared in the spawn class idAI
- allowDamage
- allowHiddenMovement
- allowMovement
- animTurn
- attackBegin
- attackEnd
- attackMelee
- attackMissile
- becomeNonSolid
- becomeRagdoll
- becomeSolid
- burn
- canBecomeSolid
- canHitEnemy
- canHitEnemyFromAnim
- canHitEnemyFromJoint
- canReachEnemy
- canReachEntity
- canReachPosition
- canSee
- chargeAttack
- clearBurn
- clearEnemy
- clearFlyOffset
- closestReachableEnemyOfEntity
- createMissile
- directDamage
- disableAFPush
- disableClip
- disableGravity
- enableAFPush
- enableClip
- enableGravity
- enemyInCombatCone
- enemyPositionValid
- enemyRange
- enemyRange2D
- entityInAttackCone
- faceEnemy
- faceEntity
- facingIdeal
- findActorsInBounds
- findEnemy
- findEnemyAI
- findEnemyInCombatNodes
- fireMissileAtTarget
- getClosestHiddenTarget
- getCombatNode
- getCurrentYaw
- getEnemy
- getEnemyEyePos
- getEnemyPos
- getHealth
- getJumpVelocity
- getMoveType
- getObstacle
- getRandomTarget
- getReachableEntityPosition
- getTalkTarget
- getTurnDelta
- getTurnRate
- heardSound
- ignoreDamage
- kickObstacles
- kill
- launchMissile
- locateEnemy
- lookAt
- lookAtEnemy
- meleeAttackToJoint
- moveOutOfRange
- moveStatus
- moveToAttackPosition
- moveToCover
- moveToEnemy
- moveToEnemyHeight
- moveToEntity
- moveToPosition
- muzzleFlash
- numSmokeEmitters
- preBurn
- predictEnemyPos
- pushPointIntoAAS
- randomPath
- radiusDamageFromJoint
- restoreMove
- saveMove
- setBoneMod
- setEnemy
- setFlyOffset
- setFlySpeed
- setHealth
- setMoveType
- setSmokeVisibility
- setTalkState
- setTalkTarget
- setTurnRate
- shrivel
- slideTo
- stopMove
- stopRagdoll
- stopThinking
- testAnimAttack
- testAnimMove
- testAnimMoveTowardEnemy
- testChargeAttack
- testMeleeAttack
- testMoveToPosition
- travelDistanceBetweenEntities
- travelDistanceBetweenPoints
- travelDistanceToEntity
- travelDistanceToPoint
- turnTo
- turnToEntity
- turnToPos
- waitAction
- waitMove
- wakeOnFlashlight
- wander
idAI_Vagary Events
Events declared in the spawn class idAI_Vagary
idAnimated Events
Events declared in the spawn class idAnimated
idAnimatedEntity Events
Events declared in the spawn class idAnimatedEntity
idCameraAnim Events
Events declared in the spawn class idCameraAnim
idCombatNode Events
Events declared in the spawn class idCombatNode
idDoor Events
Events declared in the spawn class idDoor
idForcefield Events
Events declared in the spawn class idForceField
idLight Events
Events declared in the spawn class idLight
- fadeInLight
- fadeOutLight
- getLightParm
- Off
- On
- setLightParm
- setLightParms
- setRadius
- setRadiusXYZ
- setShader
idMoveable Events
Events declared in the spawn class idMoveAble
idMover Events
Events declared in the spawn class idMover
- accelSound
- accelTime
- accelTo
- bob
- closePortal
- decelSound
- decelTime
- decelTo
- disableSplineAngles
- enableSplineAngles
- isMoving
- isRotating
- move
- moveSound
- moveTo
- moveToPos
- openPortal
- removeInitialSplineAngles
- rotate
- rotateDownTo
- rotateOnce
- rotateTo
- rotateUpTo
- speed
- startSpline
- stopMoving
- stopRotating
- stopSpline
- sway
- time
idPlayer Events
Events declared in the spawn class idPlayer
- disableWeapon
- enableWeapon
- getButtons
- getCurrentWeapon
- getMove
- getPreviousWeapon
- getViewAngles
- getWeaponEntity
- inPDA
- openPDA
- selectWeapon
idProjectile Events
Events declared in the spawn class idProjectile
idWeapon Events
Events declared in the spawn class idWeapon
- addToClip
- allowDrop
- ammoAvailable
- ammoInClip
- animDone
- autoReload
- clipSize
- createProjectile
- flashlight
- getBlendFrames
- getOwner
- getWorldModel
- isInvisible
- launchProjectiles
- melee
- netEndReload
- netReload
- nextWeapon
- playAnim
- playCycle
- setBlendFrames
- totalAmmoCount
- useAmmo
- weaponHolstered
- weaponLowering
- weaponOutOfAmmo
- weaponReady
- weaponReloading
- weaponRising
- weaponState
Utility Functions
These functions can be found in doom_util.script .