A list of all Actions, Conditions and Expressions supported in this addon.
Ammo
-
Actions
{my}: Add {0} ammo
Add ammunition to current count (capped at max)
{my}: Set current ammo to {0}
Set the current ammunition count
{my}: Set max ammo to {0}
Set the maximum ammunition capacity
{my}: Subtract {0} ammo
Subtract ammunition from current count
-
Conditions
{my}: Current ammo {0} {1}
Compare the current ammo count
{my}: Has ammo
True if the weapon has at least 1 ammo
{my}: Ammo is full
True if current ammo equals max ammo
{my}: On add ammo
Triggered when ammo is added to the weapon
{my}: On empty
Triggered when trying to fire with no ammo
-
Expressions
AmmoPercent
Get ammo as a percentage (0-1)
CurrentAmmo
Get the current ammunition count
MaxAmmo
Get the maximum ammunition capacity
Firing
-
Actions
{my}: Fire weapon
Fire the weapon (respects fire mode, ammo, and cooldown)
{my}: Reset fire cooldown
Instantly reset the fire cooldown, allowing immediate firing
{my}: Set burst count to {0}
Set the number of shots in burst fire mode
{my}: Set fire mode to {0}
Set the weapon's fire mode
{my}: Set fire rate to {0} seconds
Set the time between shots in seconds
-
Conditions
{my}: Can fire
True if the weapon can fire (has ammo, not reloading, cooldown elapsed)
{my}: Fire mode is {0}
Check if the weapon is in a specific fire mode
{my}: On fire
Triggered when the weapon fires a shot
-
Expressions
AutomaticFireModeID
Returns the ID for Automatic fire mode (1)
BurstCount
Get the number of shots in burst fire mode
BurstFireModeID
Returns the ID for Burst Fire mode (2)
FireCooldown
Get the current fire cooldown remaining (in seconds)
FireCooldownProgress
Get fire cooldown progress as a percentage (0-1, where 100 means ready to fire)
FireMode
Get the current fire mode ("single", "automatic", or "burst")
FireModeID
Get the current fire mode as a number (0=single, 1=automatic, 2=burst)
FireRate
Get the fire rate (time between shots in seconds)
SingleFireModeID
Returns the ID for Single Shot fire mode (0)
Reload
-
Actions
{my}: Add {0} to reserve ammo
Add ammunition to the reserve pool for Speed Reload
{my}: Cancel reload
Cancel the current reload
{my}: Instant reload
Instantly reload the weapon to max ammo
{my}: Reload {0} bullet(s)
Instantly reload a number of bullets (for Per-Bullet reload type)
{my}: Start reload
Start reloading the weapon
{my}: Set auto reload to {0}
Enable or disable auto reload when empty
{my}: Set reload time to {0} seconds
Set the reload duration in seconds
{my}: Set reload type to {0}
Set how the weapon reloads. Magazine: Manual reload restores max ammo. Per-Bullet: Manual reload adds bullets sequentially. Speed Reload: Manual reload discards remaining ammo and draws from reserves. Passive Reload: Automatic regeneration.
{my}: Set reserve ammo to {0}
Set the reserve ammunition count for Speed Reload (-1 = infinite)
-
Conditions
{my}: Reload type is {0}
Compare the current reload type
{my}: Is reloading
True if the weapon is currently reloading
{my}: On partial reload
Triggered when one bullet is loaded (Per-Bullet and Passive Reload types)
{my}: On partial reload start
Triggered when per-bullet reload begins loading a bullet
{my}: On reload complete
Triggered when reload finishes
{my}: On reload start
Triggered when reload begins (Manual reload types and Passive Reload)
-
Expressions
PerBulletReloadTime
Get the reload time per bullet based on reload type. For Per-Bullet reload: ReloadTime / MaxAmmo. For Passive reload: ReloadTime (seconds per bullet). Otherwise: full ReloadTime
Reloading
Returns 1 if reloading, 0 if not
ReloadProgress
Get reload progress as percentage (0-1, where 1 means reload complete)
ReloadTime
Get the reload duration in seconds
ReloadType
Get the current reload type (magazine, per_bullet, speed_reload, or passive_reload)
ReloadTypeID
Get the current reload type as a number (0=magazine, 1=per_bullet, 2=speed_reload, 3=passive_reload)
ReloadTypeIDMagazine
Returns the ID for Magazine reload type (0)
ReloadTypeIDPassive
Returns the ID for Passive Reload type (3)
ReloadTypeIDPerBullet
Returns the ID for Per-Bullet reload type (1)
ReloadTypeIDSpeed
Returns the ID for Speed Reload type (2)
ReserveAmmo
Get the current reserve ammo count (-1 = infinite reserves)