LookupEntityAttachment Function

Returns the index number of a given named attachment.

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


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.


Invalid entity or lack of mod support.