NPC/CapabilitiesAdd

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

Contents

Description

Adds a capability to the NPC.

Arguments

number capabilities

Capabilities to add, see CAP_ Enums

Examples

Example

Adds the CAP_USE_SHOT_REGULATOR to the NPC's capabilities.

self:CapabilitiesAdd(CAP_USE_SHOT_REGULATOR)


Personal tools
Navigation