GetEntityAttachment Function

Returns the world location and world angles of an attachment.

bool GetEntityAttachment(int entity, int attachment, float origin[3], float angles[3])

Parameters

int entity

The entity index.

int attachment

The attachment index.

float[3] origin

Destination vector to store the attachment's origin vector.

float[3] angles

Destination vector to store the attachment's position angle.

Return Value

True on success, otherwise false.

Errors

Invalid entity or lack of mod support.