Skip to content

Custom Weapon Attribute Types

wootguy edited this page May 23, 2026 · 3 revisions

Descriptions of the Type column values seen in the attribute/event tables.

Type Example Value Description
string asdf Text.
integer 123 A whole number.
float 1.23 A decimal number.
time 200ms or 0.2s A number representing a period of time. Valid suffixes are ms for milliseconds, and s for seconds. The maximum value is 65 seconds.
vector 10 -20 0.5 3 decimal values separated by spaces.
RGB 255 0 0 Red/Green/Blue values separated by spaces. Each color channel is a number ranging from 0-255.
RGBA 0 255 0 255 Red/Green/Blue/Alpha values separated by spaces. Each color channel is a number ranging from 0-255.
List of flags something + another_thing A list of values that are combined using the + character.
List of integers 1 2 4 8 54 integer values separated by spaces.

The names of skill cvars can be used in place of numbers for the integer and float types (e.g. sk_plr_9mm_bullet).

Clone this wiki locally