Squirrel/Server/Functions/Weapons/GetWeaponIDFromName
From Liberty Unleashed Wiki
(Difference between revisions)
m (Squirrel/Server/Functions/Misc/GetWeaponIDFromName moved to Squirrel/Server/Functions/Weapons/GetWeaponIDFromName: Moved to weapon funcs) |
m |
||
Line 25: | Line 25: | ||
== Related Functions == | == Related Functions == | ||
− | {{Squirrel/Server/Functions/ | + | {{Squirrel/Server/Functions/Weapons}} |
Revision as of 01:33, 18 January 2010
This function returns the ID of the weapon from its name.
Syntax
int GetWeaponIDFromName( string weaponName )
Arguments
- weaponName - The name of the weapon
Example
function onPlayerCommand( player, command, text ) { if ( command == "wepid" ) GetWeaponIDFromName( text ); }
Notes
This function is used to get the weapon ID of the given text.
Related Functions
- GetWeaponData
- GetWeaponIDFromName
- GetWeaponName
- SetWeaponData