Garry's Mod Wiki

Garry's Mod Wiki

  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 WEAPON_PROFICIENCY enum.

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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...