NPC/SetCurrentWeaponProficiency

From Garry's Mod
Jump to: navigation, search
 NPC:SetCurrentWeaponProficiency( )

Contents

Description

Sets the weapon proficiency of an NPC (how skilled an NPC is with its current weapon).

Arguments

number proficiency

The proficiency for the NPC's current weapon. See WEAPON_PROFICIENCY_ Enums.

Examples

Example

Makes all NPCs suck at using their current weapons.

for _, v in pairs( ents.FindByClass( "npc_*" ) ) do
    v:SetCurrentWeaponProficiency( WEAPON_PROFICIENCY_POOR )
end


Personal tools
Navigation