AMX Mod X API Documentation

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

Gets the position of the attachment

Parameters
  • entity Entity index
  • attachment Number of the attachment
  • vecOrigin Array to store origin in
  • vecAngles Array to store angles in
Returns

1 on success, 0 otherwise

Errors
  • If the index is not within the range of 1 to maxEntities or

    the entity is not valid, an error will be thrown.

Назад
Верх