Entity/SetAttachment

From Garry's Mod
Jump to: navigation, search
 Entity:SetAttachment( )

Description

This feature is deprecated.
You should avoid using it as it may be removed in a future version.

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

Entity ent

The entity to attach/parent to

Arguments

number attachment

The attachment ID to parent to
Personal tools
Navigation