Garry's Mod Wiki

Revision Difference

killicon.AddFont#551926

<function name="AddFont" parent="killicon" type="libraryfunc"> <description>Adds kill icon for given weapon/entity class using special font.</description> <realm>Client</realm> <file line="20-L28">lua/includes/modules/killicon.lua</file>⤶ <args> <arg name="class" type="string">Weapon or entity class</arg> <arg name="font" type="string">Font to be used</arg> <arg name="symbol" type="string">The symbol to be used</arg> <arg name="color" type="table">Color of the killicon</arg> </args> </function> <example> <description>Example of using the function. Adds pistol kill icon.</description> <code>killicon.AddFont( "weapon_pistol", "HL2MPTypeDeath", "-", Color( 255, 80, 0, 255 ) )</code> </example>