Entity/LookupAttachment

From Garry's Mod
Jump to: navigation, search
 Entity:LookupAttachment( )

Description

Returns the attachment index of the given attachment name.

Arguments

string attachmentName

The name of the attachment.

Returns

number

The attachment index, or 0 if the attachment does not exist and -1 if the model is invalid.
Personal tools
Navigation