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.

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

Page Links


Special Pages


Wikis

?

Render Time: 33ms

Session 0
DB GetPage 3
Generate Html 8
SaveChanges 8
Render Body 0
Render Sidebar 12