Garry's Mod Wiki


  Entity:SetAttachment( Entity ent, number attachment )


We advise against using this. It may be changed or removed in a future update. You should be using Entity:SetParent instead.

Parents the sprite to an attachment on another model.

Works only on env_sprite.

Despite existing on client, it doesn't actually do anything on client.


1 Entity ent
The entity to attach/parent to
2 number attachment
The attachment ID to parent to