This article's documentation is for anything that uses the Source engine. Click here for more information.

prop_dynamic_ornament

From Valve Developer Community
Jump to: navigation, search
class hierarchy
COrnamentProp defined in props.cpp
CDynamicProp
CBreakableProp
CBaseProp
CBaseAnimating
CBaseEntity

prop_dynamic_ornament is a point entity available in all Source Source games. It is a way to attach one studio model to another as an ornament. It will render in the way that player/NPC weapons render.

Confirm:Team Fortress 2 Team Fortress 2 hats are attached to player using this entity

Keyvalues


Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.
Target Entity (InitialOwner) <string>
Name of the entity that this ornament should attach to, at startup.

Inputs

SetAttached <string>
Attach the ornament to a different entity. Parameter should be the name of entity to attach to.
Detach <string>
Detach from the Target Entity and become invisible. The ornament can be re-attached with the SetAttached input.

See Also