Garry's Mod Wiki

Entity:SetAttachment

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

Special Pages


Wikis

?

Render Time: 102ms

DB GetPage 84
Generate Html 4
SaveChanges (1) 5
Render Body 0
Render Sidebar 7