GetEntityAttachment

Last Updated2022-01-03
Created At2022-01-03

Returns the world location and world angles of an attachment.

native 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

bool True on success, otherwise false.

Error

Invalid entity or lack of mod support.