GetAttachment

Syntax

native GetAttachment(const entity, const attachment, Float:vecOrigin[3], Float:vecAngles[3] = {0.0, 0.0, 0.0});

Usage

Parameter Description
entity
Entity index
attachment
Number of the attachment
vecOrigin
Array to store origin in
vecAngles
Array to store angles in

Description

Gets the position of the attachment

Return

1 on success, 0 otherwise

Error

If the index is not within the range of 1 to maxEntities or
the entity is not valid, an error will be thrown.