NPC.GetCurrentWeaponProficiency

From GMod Wiki

Revision as of 19:46, 23 November 2009 by Dlaor (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax NPC:GetCurrentWeaponProficiency( )
Description:
Gets the weapon proficiency of a NPC. (how accurate the NPC shoots with the weapon)
Returns: Enum
In Object: Npc
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=NPC.GetCurrentWeaponProficiency]NPC.GetCurrentWeaponProficiency [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionGets the weapon proficiency of all combine soldiers.
Used onNewerServer.png
Code
for _, v in pairs( ents.FindByClass( "npc_combine_s" ) ) do
    print( v:GetCurrentWeaponProficiency() )
end
OutputLots of numbers.


Additional Notes

WEAPON_PROFICIENCY_POOR
WEAPON_PROFICIENCY_AVERAGE
WEAPON_PROFICIENCY_GOOD
WEAPON_PROFICIENCY_VERY_GOOD
WEAPON_PROFICIENCY_PERFECT

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox