LookupEntityAttachment Function

Returns the index number of a given named attachment.

int LookupEntityAttachment(int entity, const char[] name)

Parameters

int entity

The entity index.

const char[] name

The attachment name.

Return Value

An attachment index, or 0 if the attachment name is invalid or unused.

Errors

Invalid entity or lack of mod support.