Garry's Mod Wiki

CEffectData:SetAttachment

  CEffectData:SetAttachment( number attachment )

Description

Sets the attachment id of the effect to be created with this effect data.

This is internally stored as an integer, but only the first 5 bits will be networked, effectively limiting this function to 0-31 range.

Arguments

1 number attachment
New attachment ID of the effect.