Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...