NPC.GetCurrentWeaponProficiency

From GMod Wiki

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