WEAPON:GetCapabilities

From Garry's Mod
Jump to: navigation, search
 WEAPON:GetCapabilities( )

Contents

Description

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

Returns

number

A number defining what NPC should do with the weapon. Use the CAP_ Enums.

Examples

Example

As defined in weapon_base

function SWEP:GetCapabilities()

	return bit.bor( CAP_WEAPON_RANGE_ATTACK1, CAP_INNATE_RANGE_ATTACK1 )

end


Personal tools
Navigation