Squirrel/Server/Functions/Weapons/GetWeaponIDFromName

From Liberty Unleashed Wiki
Revision as of 01:33, 18 January 2010 by Juppi (Talk | contribs)

Jump to: navigation, search

This function returns the ID of the weapon from its name.

Syntax

  1. int GetWeaponIDFromName( string weaponName )

Arguments

  • weaponName - The name of the weapon

Example

  1.  
  2. function onPlayerCommand( player, command, text )
  3. {
  4. if ( command == "wepid" ) GetWeaponIDFromName( text );
  5. }
  6.  

Notes

This function is used to get the weapon ID of the given text.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox