Return to Main Docs Page

GetPrintName

NewerServer.png Returns the print name of weapon.

Weapon:GetPrintName()
               

Returns:


  • 1) string PrintName
  • String which is going to be printed on weapon selection slot.

Example:



function getPrintName( pPlayer )
   print( pPlayer:GetActiveWeapon():GetPrintName() ) --Returns print name of da weapon. 
end

concommand.Add("getPrintName", getPrintName)