GetWeaponIDFromName: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
JonChappell (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
__NOTOC__ | __NOTOC__ | ||
This | This function will obtain the ID of a particular weapon from its name. | ||
==Syntax== | ==Syntax== | ||
Line 10: | Line 10: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*''' | *'''name:''' A [[string]] containing the name of the weapon. | ||
===Returns=== | ===Returns=== | ||
Returns | Returns an [[int]] if the name matches that of a weapon, ''false'' otherwise. | ||
==Example== | ==Example== | ||
Line 30: | Line 25: | ||
==See Also== | ==See Also== | ||
{{ | {{Weapon functions}} |
Revision as of 04:11, 3 October 2006
This function will obtain the ID of a particular weapon from its name.
Syntax
int getWeaponIDFromName ( string name )
Required Arguments
- name: A string containing the name of the weapon.
Returns
Returns an int if the name matches that of a weapon, false otherwise.
Example
This example does...
--This line does... blabhalbalhb --abababa --This line does this... mooo
See Also
- getWeaponProperty
- getPickupWeapon
- getOriginalWeaponProperty
- getSlotFromWeapon
- getWeaponIDFromName
- getWeaponNameFromID
- setWeaponAmmo
- setWeaponProperty