Garry's Mod Wiki

Entity:SetAttachment

  Entity:SetAttachment( Entity ent, number attachment )

Description

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 entities.

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

Arguments

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