Script events (ETQW)
- System Events
- Entity Events
- idLight Events
- idForcefield Events
- Animate Events
- idDoor Events
- idMoveable Events
- sdGeneralMover Events
- idAnimatedEntity Events
- idWeapon Events
- idProjectile Events
- idActor Events
- idPlayer Events
- sdAtmosphere Events
- sdWalker Events
- sdTransport Events
- sdVehicle_Rigidbody Events
- sdVehicleWeapon Events
- sdJetPack Events
- sdScriptEntity Events
- sdDeployZone Events
- Animated Client Entity Events
- sdTeleporter Events
- sdRepairDrone Events
- sdParachute Events
- sdDefenceTurret Events
- sdDeliveryVehicle Events
- Game Class Events
- CVar Events
- Mask Edit-session Events
Script events are the commands used in ET:QW’s native scripting language.
Existing script events as of version 1.1.
System Events
Events declared in idThread , accessible via sys identifier.
- addCheapDecal
- createMaskEditSession
- handleToString
- stringToHandle
- toWStr
- pushLocString
- pushLocStringIndex
- localizeStringIndexArgs
- localizeStringArgs
- localizeString
- getNetworkKey
- fromNetworkKey
- terminate
- wait
- waitFrame
- println
- debugln
- say
- assert
- getCVar
- random
- getTime
- killThread
- threadName
- getEntityByID
- getEntity
- spawn
- spawnClient
- spawnType
- angToForward
- angToRight
- angToUp
- sin
- asin
- cos
- acos
- atan
- atan2
- getRoot
- solveRoots
- angleNormalize180
- fabs
- floor
- ceil
- mod
- fmod
- sqrt
- vecNormalize
- vecLength
- vecLengthSquared
- crossProduct
- vecToAngles
- rotateVecByAngles
- rotateAngles
- rotateVec
- toLocalSpace
- toWorldSpace
- checkContents
- trace
- tracePoint
- traceOriented
- saveTrace
- freeTrace
- getTraceFraction
- getTraceEndPos
- getTracePoint
- getTraceNormal
- getTraceEntity
- getTraceSurfaceFlags
- getTraceSurfaceType
- getTraceSurfaceColor
- getTraceJoint
- getTraceBody
- fadeIn
- fadeOut
- fadeTo
- music
- startSoundDirect
- error
- warning
- strLength
- strLeft
- strRight
- strSkip
- strMid
- strToFloat
- isClient
- isServer
- doClientSideStuff
- getFrameTime
- getTicsPerSecond
- debugLine
- debugArrow
- debugCircle
- debugBounds
- allocCMIcon
- freeCMIcon
- setCMIconSize
- setCMIconUnknownSize
- setCMIconSize2d
- setCMIconUnknownSize2d
- setCMIconSizeMode
- setCMIconSort
- setCMIconPositionMode
- setCMIconOrigin
- setCMIconColor
- setCMIconColorMode
- setCMIconDrawMode
- setCMIconAngle
- setCMIconSides
- showCMIcon
- hideCMIcon
- addCMIconRequirement
- setCMIconMaterial
- setCMIconUnknownMaterial
- setCMIconFireteamMaterial
- setCMIconGuiMessage
- setCMIconFlag
- clearCMIconFlag
- setCMIconArcAngle
- setCMIconShaderParm
- getCMIconFlags
- flashCMIcon
- drawText
- broadcastToolTip
- getDeclType
- getDeclCount
- getDeclIndex
- getDeclName
- applyRadiusDamage
- filterEntity
- getTableCount
- getTableValue
- getTableValueExact
- getObjectTitle
- allocDecal
- projectDecal
- freeDecal
- resetDecal
- getTypeHandle
- argc
- argv
- argvf
- setActionCommand
- getTeam
- setWinningTeam
- endGame
- setEndGameCamera
- playWorldEffect
- playWorldEffectRotate
- playWorldEffectRotateAlign
- playWorldBeamEffect
- setGUIFloat
- setGUIHandle
- setGUIVec2
- setGUIVec3
- setGUIVec4
- setGUIString
- setGUIWString
- getGUIFloat
- clearDeployRequest
- getDeployMask
- checkDeployMask
- getWorldPlayZoneIndex
- consoleCommand
- allocTargetTimer
- getTargetTimerValue
- setTargetTimerValue
- getEntityDefKey
- getEntityDefIntKey
- getEntityDefFloatKey
- getEntityDefVectorKey
- getMaxClients
- getClient
- getTerritoryForPoint
- getMatchTimeRemaining
- getMatchState
- allocStatInt
- allocStatFloat
- increaseStatInt
- increaseStatFloat
- getStatValue
- getClimateSkin
- sendQuickChat
- getContextEntity
- pushEndGameStat
- sendEndGameStats
- heightMapTrace
- enableBotReachability
- getNextBotActionIndex
- getBotActionOrigin
- getBotActionDeployableType
- getBotActionBaseGoalType
Entity Events
Events declared in the base spawn class idEntity .
All entities inherit these events, though some may be overridden to produce different behaviour.
- remove
- isClass
- getName
- setName
- getMaster
- activate
- activateTargets
- numTargets
- getTarget
- randomTarget
- bind
- enableAxisBind
- bindPosition
- bindToJoint
- unbind
- removeBinds
- setModel
- setSkin
- setCoverage
- getWorldAxis
- setWorldAxis
- getGravityNormal
- getWorldOrigin
- setWorldOrigin
- getOrigin
- setOrigin
- getAngles
- getLocalAngles
- setAngles
- setGravity
- alignToAxis
- getLinearVelocity
- setLinearVelocity
- getAngularVelocity
- setAngularVelocity
- getMass
- getCenterOfMass
- setFriction
- getSize
- setSize
- getMins
- getMaxs
- getAbsMins
- getAbsMaxs
- getRenderMins
- getRenderMaxs
- setRenderBounds
- isHidden
- hide
- show
- touches
- touchesBounds
- getShaderParm
- setShaderParm
- setShaderParms
- setColor
- getColor
- stopSound
- startSound
- fadeSound
- setChannelPitchShift
- setChannelFlags
- clearChannelFlags
- getNextKey
- setKey
- getKey
- getIntKey
- getFloatKey
- getVectorKey
- getEntityKey
- getKeyWithDefault
- getIntKeyWithDefault
- getFloatKeyWithDefault
- getVectorKeyWithDefault
- getClassKey
- restorePosition
- distanceTo
- distanceToPoint
- wait
- disablePhysics
- enablePhysics
- entitiesInTranslation
- entitiesInBounds
- entitiesInLocalBounds
- entitiesInRadius
- entitiesOfType
- entitiesOfClass
- entitiesOfCollection
- filterEntitiesByRadius
- filterEntitiesByClass
- filterEntitiesByAllegiance
- filterEntitiesByDisguiseAllegiance
- filterEntitiesByFilter
- filterEntitiesByTouching
- getBoundsCacheCount
- getBoundsCacheEntity
- getSavedCacheCount
- getSavedCacheEntity
- saveCachedEntities
- freeSavedCache
- getEntityAllegiance
- inCollection
- getEntityContents
- getMaskedEntityContents
- takesDamage
- setTakesDamage
- applyDamage
- setNetworkSynced
- hasAbility
- sync
- syncBroadcast
- syncCallback
- playMaterialEffect
- playJointEffect
- playJointEffectViewSuppress
- playEffect
- playEffectViewSuppress
- playOriginEffect
- playEffectMaxVisDist
- playOriginEffectMaxVisDist
- playBeamEffect
- lookupEffect
- stopEffect
- killEffect
- stopEffectHandle
- unBindEffectHandle
- setEffectAttenuation
- setEffectRenderBounds
- setEffectColor
- setEffectOrigin
- setEffectAngles
- stopAllEffects
- detachRotationBind
- clearContacts
- setContents
- setClipmask
- putToRest
- hasForceDisableClip
- forceDisableClip
- forceEnableClip
- hasGroundContacts
- disableGravity
- setComeToRest
- applyImpulse
- addForce
- addForceAt
- addTorque
- activatePhysics
- isAtRest
- isBound
- turnTowards
- getGameTeam
- setGameTeam
- launchMissileSimple
- launchBullet
- getLocalPlayer
- getLocalViewPlayer
- getGUI
- setGUITheme
- guiPostNamedEvent
- pointInRadar
- disableImpact
- enableImpact
- disableKnockback
- enableKnockback
- sendNetworkCommand
- sendNetworkEvent
- preventDeployment
- allocBeam
- updateBeam
- freeBeam
- freeAllBeams
- getNextTeamEntity
- allocHudModule
- freeHudModule
- requestDeployment
- requestCheckedDeployment
- getWorldMins
- getWorldMaxs
- setDeploymentObject
- setDeploymentState
- setDeploymentMode
- getDeploymentMode
- getDeploymentRotation
- allowDeploymentRotation
- getDefaultFov
- setHealth
- getHealth
- setMaxHealth
- getMaxHealth
- getEnemy
- setCanCollideWithTeam
- spawnClientEffect
- spawnClientCrawlEffect
- setEffectEndOrigin
- setEffectLooping
- endEffect
- getSpawnID
- getDeployableObject
- isSpotted
- setSpotted
- forceNetworkUpdate
- getEntityNumber
- disableCrosshairTrace
- isInWater
- getDamageScale
- getDefaultSurfaceType
idLight Events
idForcefield Events
Animate Events
idDoor Events
idMoveable Events
sdGeneralMover Events
Note: This spawn class does not have any entityDef referencing it and wasn’t used in the retail maps.
- startTimedMove
- stopCurrentMove
- setPosition
- getNumPositions
- addPosition
- getMoverState
- killBlockingEntity
idAnimatedEntity Events
Skeletal Animation Events
- getJointHandle
- clearAllJoints
- clearJoint
- setJointPos
- setJointAngle
- getJointPos
- getLocalJointPos
- getJointAxis
- getJointAngle
- playAnim
- isAnimating
- getAnimatingOnChannel
- animationName
- isAnimatingOnChannel
- jointToWorldSpace
- worldToModelSpace
- hideSurface
- showSurface
- getSurfaceId
- isSurfaceHidden
idWeapon Events
- getOwner
- nextWeapon
- weaponState
- getWeaponState
- addToClip
- ammoInClip
- ammoAvailable
- clipSize
- ammoRequired
- ammoType
- useAmmo
- fired
- playAnim
- playCycle
- animDone
- setBlendFrames
- getBlendFrames
- weaponReady
- weaponOutOfAmmo
- weaponReloading
- weaponHolstered
- weaponRising
- weaponLowering
- launchProjectiles
- createProjectile
- melee
- meleeAttack
- setLightParm
- setLightParms
- saveMeleeTrace
- getMeleeFraction
- getMeleeEndPos
- getMeleePoint
- getMeleeNormal
- getMeleeEntity
- getMeleeSurfaceFlags
- getMeleeSurfaceType
- getMeleeSurfaceColor
- getMeleeJoint
- getMeleeBody
- enableTargetLock
- setFovStart
- setFov
- clearFov
- getFov
- enableClamp
- disableClamp
- disableModel
- getCurrentSpread
- increaseSpread
- setSpreadModifier
- getWorldModel
- setDriftScale
- resetTracerCounter
- getLastTracer
- setupAnimClass
- enableSway
- enableSpreadEvals
- setStatName
idProjectile Events
idActor Events
- setConstraintPosition
- stopAnim
- playAnim
- playAnimBlended
- getAnimLength
- playCycle
- idleAnim
- setSyncedAnimWeight
- setBlendFrames
- getBlendFrames
- animState
- getAnimState
- inAnimState
- animDone
- overrideAnim
- preventPain
- enableAnim
- disablePain
- enablePain
- getPainAnim
- setPrefix
- hasAnim
- hasWeaponAnim
- checkAnim
- chooseAnim
- animLength
- animDistance
- setNextState
- setState
- getState
- syncAnim
- getDeployResult
idPlayer Events
- getButton
- getMove
- getUserCmdAngles
- getViewAngles
- setViewAngles
- getCameraViewAngles
- getRenderViewAngles
- getViewOrigin
- getWeaponEntity
- freeze
- freezeTurning
- setRemoteCamera
- getRemoteCamera
- setRemoteCameraViewOffset
- getViewingEntity
- isGunHidden
- giveProficiency
- giveClassProficiency
- getProficiency
- getXP
- clearAmmo
- resetWeapon
- heal
- unheal
- repair
- makeInvulnerable
- giveClass
- givePackage
- setClassOption
- sendToolTip
- cancelToolTips
- selectBestWeapon
- setWeapon
- getCurrentWeapon
- hasWeapon
- getVehicle
- getAmmoFraction
- getUserName
- getClassName
- getCachedClassName
- getPlayerClass
- getRankName
- getShortRankName
- getActiveWeapon
- getMaxHealth
- getCrosshairEntity
- getCrosshairDistance
- getCrosshairEndPos
- getCrosshairStartTime
- enterDeploymentMode
- exitDeploymentMode
- getDeploymentActive
- setSpawnPoint
- getSpawnPoint
- setSpeedModifier
- setSprintScale
- setSwayScale
- needsRevive
- canRevive
- isDead
- isInvulnerable
- revive
- setProxyEntity
- getProxyEntity
- getProxyAllowWeapon
- setSniperAOR
- getKilledTime
- forceRespawn
- enter
- createIcon
- freeIcon
- getAmmo
- getMaxAmmo
- setAmmo
- setMaxAmmo
- setTargetTimeScale
- disableSprint
- disableRun
- disableFootsteps
- disableFallingDamage
- disguise
- setSpectateClient
- getDisguiseClient
- isDisguised
- setViewSkin
- getViewSkin
- setGUIClipIndex
- getDeploymentRequest
- getDeploymentPosition
- getActiveTask
- getItemIndexByName
- getItemNameByIndex
- binAdd
- binGet
- binGetSize
- binRemove
- disableShadows
- inhibitGuis
- getPostArmFindBestWeapon
- sameFireTeam
- isFireTeamLeader
- isLocalPlayer
- isToolTipPlaying
- resetTargetLock
- isLocking
- enableClientModelSights
- disableClientModelSights
- getCrosshairTitle
- adjustDeathYaw
- setCarryingObjective
Bots Player Interface Events
- setPlayerChargeOrigin
- setPlayerChargeArmed
- setPlayerItemState
- setPlayerGrenadeState
- setPlayerMineState
- setPlayerMineArmed
- setPlayerSupplyCrateState
- setPlayerAirstrikeState
- setPlayerCovertToolState
- setPlayerSpawnHostState
- setSmokeNadeState
- setArtyAttackLocation
- setPlayerRepairTarget
- setPlayerKillTarget
- setPlayerPickupRequestTime
- setPlayerCommandRequestTime
- setTeleporterState
sdAtmosphere Events
- resetPostProcess
- getDefaultPostProcessSaturation
- getDefaultPostProcessGlareSourceBrightness
- getDefaultPostProcessGlareBlurBrightness
- getDefaultPostProcessGlareBrightnessThreshold
- getDefaultPostProcessGlareThresholdDependency
- setPostProcessTint
- setPostProcessSaturation
- setPostProcessContrast
- setPostProcessGlareParms
- isNight
sdWalker Events
sdTransport Events
Events used in regular vehicles
- repair
- getLastRepairOrigin
- resupply
- inputSetPlayer
- inputGetCollective
- getDriver
- isEmpty
- updateEngine
- setLightsEnabled
- disableSuspension
- getPassengerNames
- lock
- kickPlayer
- disableTimeout
- getSteerAngle
- destroyParts
- decayParts
- decayLeftWheels
- decayRightWheels
- decayNonWheels
- resetDecayTime
- hasHiddenParts
- disableModel
- swapPosition
- getNumPositions
- getNumOccupiedPositions
- getPositionPlayer
- getSurfaceType
- selectVehicleWeapon
- getObject
- setThrust
- getJoint
- getParent
- setDeathThroeHealth
- getMinDisplayHealth
- updateThrusters
- isEMPed
- isWeaponEMPed
- applyEMPDamage
- getRemainingEMP
- setLockAlarmActive
- setImmobilized
- setActive
- getLandingGearDown
- inSiegeMode
- getArmor
- setArmor
- getNumVehicleWeapons
- getVehicleWeapon
- setOverDriveScale
- setTrackerEntity
- isPlayerBanned
- banPlayer
- clearLastAttacker
- enablePart
- disablePart
- destructionTime
- directionWarning
- isTeleporting
sdVehicle_Rigidbody Events
sdVehicleWeapon Events
sdJetPack Events
sdScriptEntity Events
- addHelper
- getBoundPlayer
- removeBoundPlayer
- chSetNumLines
- chAddLine
- chSetOrigin
- chGetDistance
- chSetLineText
- chSetLineTextIndex
- chSetLineMaterial
- chSetLineColor
- chSetLineBackColor
- chSetLineSize
- chSetLineFraction
- chSetLineType
- freeLayers
- allocRadarLayer
- allocJammerLayer
- radarSetLayerRange
- radarSetLayerMaxAngle
- radarSetLayerJammer
- radarSetLayerMask
- setRemoteViewAngles
- getRemoteViewAngles
- pathFind
- pathFindVampire
- pathLevel
- pathStraighten
- pathGetNumPoints
- pathGetPoint
- pathGetLength
- pathGetPosition
- pathGetDirection
- pathGetAngles
- getVampireBombPosition
- getVampireBombAcceleration
- getVampireBombFallTime
- forceRunPhysics
- setGroundPosition
- setXPShareInfo
- setBoxClipModel
- getTeamDamageDone
- setTeamDamageDone
- forceAnimUpdate
- setIKTarget
- hideInLocalView
- showInLocalView
- setClipOriented
sdDeployZone Events
Territory Events
Animated Client Entity Events
sdTeleporter Events
sdRepairDrone Events
sdParachute Events
sdDefenceTurret Events
sdDeliveryVehicle Events
Game Class Events
The game sets up several game classes to manage different things.
Objective Manager Events
- setObjectiveState
- setObjectiveIcon
- setObjectiveWorldIcon
- getObjectiveState
- setNextObjective
- getNextObjective
- setShortDescription
- getShortDescription
- createMapScript
- logObjectiveCompletion
Bot Objective Manager Events
- deactivateBotActionGroup
- activateBotActionGroup
- setBotActionStateForEvent
- deactivateBotAction
- activateBotAction
- setBotCriticalClass
- botUpdateForEvent
- setAttackingTeam
- setPrimaryTeamAction
- setSecondaryTeamAction
- setTeamNeededClass
- setBotSightDist
- disableRouteGroup
- enableRouteGroup
- enableRoute
- disableRoute
- setMapHasMCPGoal
- setSpawnActionOwner
- setActionObjState
- enableNode
- disableNode
- setNodeTeam
- teamSuicideIfNotNearAction
- isActionGroupActive
- isActionActive
- switchTeamWeapons
- killBotActionGroup
- killBotAction
- setTeamUseRearSpawn
- setTeamUseRearSpawnPercentage
- getNumBotsOnTeam
- setActionPriority
- setTeamAttacksDeployables
- setActionHumanGoal
- setActionStroggGoal
- clearTeamBotBoundEntities
- setBotTeamRetreatTime
- setTeamMinePlantIsPriority
- setBotActionVehicleType
- setBotActionGroupVehicleType
- disableAASAreaInLocation
Team Events
- getName
- getTitle
- registerDeployable
- unRegisterDeployable
- registerSpawnPoint
- unRegisterSpawnPoint
- getMaxDeployables
- getNumDeployables
- getDeployable
Bot Team Events
Task Events
- allocEntityTask
- complete
- uncomplete
- setTimeout
- free
- getTaskEntity
- getPriority
- setPriority
- setUserCreated
- isUserCreated
- setLocation
- setWayPointState
- getKey
- getIntKey
- getFloatKey
- getVectorKey
- getEntityKey
- getKeyWithDefault
- getIntKeyWithDefault
- getFloatKeyWithDefault
- getVectorKeyWithDefault
- giveObjectiveProficiency
CVar Events
The game creates a cvar wrapper to support the following events on a cvar object returned by sys. getCVar
- getFloatValue
- getStringValue
- getIntValue
- getBoolValue
- getVectorValue
- setFloatValue
- setStringValue
- setIntValue
- setBoolValue
- setVectorValue
- setCallback