Garry's Mod Wiki

NPC:CapabilitiesAdd

void NPC:CapabilitiesAdd( number capabilities )

Description

Adds a capability to the NPC.

Arguments

1 number capabilities
Capabilities to add, see Enums/CAP

Example

Adds the CAP_USE_SHOT_REGULATOR to the NPC's capabilities.

self:CapabilitiesAdd(CAP_USE_SHOT_REGULATOR)

Page Links


Special Pages


Wikis

?

Render Time: 24ms

Session 0
DB GetPage 5
Generate Html 1
SaveChanges 10
Render Body 0
Render Sidebar 6