Garry's Mod Wiki

Garry's Mod Wiki

  killicon.AddFont( string class, string font, string symbol, table color, number heightScale = 1 )

Description

Adds kill icon for given weapon/entity class using special font.

Arguments

1 string class
Weapon or entity class.
2 string font
Font to be used.
3 string symbol
The symbol to be used.
4 table color
Color of the killicon.
5 number heightScale = 1
Used internally to correct certain killicons to more closely match their visual size.

Example

Example of using the function. Adds pistol kill icon.

killicon.AddFont( "weapon_pistol", "HL2MPTypeDeath", "-", Color( 255, 80, 0, 255 ) )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...