Monday, November 16, 2026
Building, modding and fragging like it's 1998
142778 visitors

Your #1 source for retro FPS developmentY2K READY

*** func_arena goes live, let the carnage begin! *** ET: Legacy 2.86.0 is out! *** Engine of the Week: qrustyquake by cyanbun96 *** Server admins: read our migration guide before Friday *** Ironwail 0.8.2 is out! ***

NAVIGATION

Wiki » Reference » DOOM 3 script events: weapons

ARTICLE

DOOM 3 script events: weapons

Name Description
getOwner
nextWeapon
weaponState
useAmmo eats the specified amount of ammo
addToClip
ammoInClip
ammoAvailable number of shots left in inventory
totalAmmoCount amount of ammo in inventory. since each shot may use more than 1 ammo, this is different than ammoAvailable()
clipSize
isInvisible
playAnim Plays the given animation on the given channel. Returns false if anim doesn't exist. NOTE: weapons only use ANIMCHANNEL_ALL
playCycle Continuously repeats the given animation on the given channel. Returns false if anim doesn't exist. NOTE: weapons only use ANIMCHANNEL_ALL
animDone Returns true if the animation playing on the given channel is completed considering a number of blend frames. NOTE: weapons only use ANIMCHANNEL_ALL
setBlendFrames Sets the number of frames to blend between animations on the given channel. NOTE: weapons only use ANIMCHANNEL_ALL
getBlendFrames Returns the number of frames to blend between animations on the given channel. NOTE: weapons only use ANIMCHANNEL_ALL
weaponReady
weaponOutOfAmmo
weaponReloading
weaponHolstered
weaponRising
weaponLowering
flashlight
launchProjectiles
createProjectile
melee
allowDrop
autoReload
netReload
netEndReload
setLightParm Sets a shader parameter on the muzzleflash/light
setLightParms Sets the red/green/blue/alpha shader parms on the muzzleflash/light
getWorldModel Returns the entity that controls the world model

Last changed Sep 21, 2026