Garry's Mod Wiki

WEAPON:GetCapabilities

WEAPON:GetCapabilities

  number WEAPON:GetCapabilities()

Description

This hook is for NPCs, you return what they should try to do with it.

Returns

1 number
A number defining what NPC should do with the weapon. Use the Enums/CAP.

Example

As defined in weapon_base

function SWEP:GetCapabilities() return bit.bor( CAP_WEAPON_RANGE_ATTACK1, CAP_INNATE_RANGE_ATTACK1 ) end

Special Pages


Wikis

?

Render Time: 22ms

DB GetPage 5
Generate Html 2
SaveChanges (1) 6
Render Body 0
Render Sidebar 6