Garry's Mod Wiki

NPC:SetCurrentWeaponProficiency

NPC:SetCurrentWeaponProficiency

  NPC:SetCurrentWeaponProficiency( number proficiency )

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 i, npc in ipairs( ents.FindByClass( "npc_*" ) ) do npc:SetCurrentWeaponProficiency( WEAPON_PROFICIENCY_POOR ) end

Special Pages


Wikis

?

Render Time: 42ms

DB GetPage 11
Generate Html 2
SaveChanges (1) 19
Render Body 0
Render Sidebar 7