Prop dynamic ornament: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: Automated text replacement (-\{\|\r +{| class=standard-table))
(Cleanup)
Line 1: Line 1:
{{wrongtitle|title=prop_dynamic_ornament}}
{{base point|prop_dynamic_ornament}} 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.
{{base_point}}


==Entity Description==
A way to attach one studio model to another as an ornament. It will render in the way that player/NPC weapons render.
==Availability==
{{in game|point}} {{game-base}}
{{in code|class=class_c_ornament_prop.html COrnamentProp|file=props_8cpp-source.html props.cpp}}
{{in code|class=class_c_ornament_prop.html COrnamentProp|file=props_8cpp-source.html props.cpp}}


==Keyvalues==
== Keyvalues ==
*{{KV PropDynamicBase}}
{{KV|Target Entity|string|Name of the entity that this ornament should attach to, at startup.}}
*'''solid'''
{{KV prop_dynamic_base}}
:<choices> Collisions.
:{| class=standard-table
! Literal value || Description
|-
| 0 || Not Solid
|}
*'''InitialOwner'''
:<string> Name of the entity that this ornament should attach to, at startup.


==Flags==
== Flags ==
*{{Fl PropDynamicBase}}
{{Fl prop_dynamic_base}}


==Inputs==
== Inputs ==
*{{I PropDynamicBase}}
{{IO|SetAttached|Attach the ornament to a different entity. Parameter should be the name of entity to attach to.|param=string}}
*'''SetAttached <target_destination>'''
{{IO|Detach|Detach from the Target Entity and become invisible. The ornament can be re-attached with the <code>SetAttached</code> input.|param=string}}
:Attach the ornament to a different entity. Parameter should be the name of entity to attach to.
{{I prop_dynamic_base}}
*'''Detach'''
:Detach from the Target Entity and become invisible. The ornament can be re-attached with the SetAttached input.


==Outputs==
== Outputs ==
*{{O PropDynamicBase}}
{{O prop_dynamic_base}}

Revision as of 15:43, 28 July 2011

Template:Base point 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.

Template:In code

Keyvalues

Target Entity ([todo internal name (i)]) <string>
Name of the entity that this ornament should attach to, at startup.

Template:KV prop dynamic base

Flags

Template:Fl prop dynamic base

Inputs

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

Template:I prop dynamic base

Outputs

Template:O prop dynamic base