Garry's Mod Wiki

NPC:SetCurrentWeaponProficiency

Description

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

Arguments

1 number proficiency
The proficiency for the NPC's current weapon. See Enums/WEAPON_PROFICIENCY.

Example

Makes all NPCs suck at using their current weapons.

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

Page Links


Special Pages


Wikis

?

Render Time: 33ms

Session 0
DB GetPage 4
Generate Html 7
SaveChanges 8
Render Body 0
Render Sidebar 11