Template:I DynamicProp: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(uuuuuuuuuuuGHHHHHHHHHHHH updates)
Line 1: Line 1:
{{ScrollBox|noscroll=true|
{{minititle|DynamicProp}}
; <code>SetAnimation <[[string]]></code>
{{IO|SetAnimation|param=string|Forces the prop to play the named animation.}}
: Force the prop to play the named animation.
{{IO|SetDefaultAnimation|param=string|Changes the animation played when not in a random/forced sequence.}}
; <code>SetDefaultAnimation <string></code>
{{IO|SetPlaybackRate|param=float|Sets the framerate at which animations are played.}}
: Change the animation played when not in a random/forced sequence.
{{IO|TurnOff|Hides the prop through {{ent|EF_NODRAW}}. The <code>Disable</code> input does the exact same thing.}}
; <code>SetPlaybackRate <[[float]]></code>
{{IO|TurnOn|Shows the prop (by removing {{ent|EF_NODRAW}}). The <code>Enable</code> input does the exact same thing.}}
: Set the framerate at which animations are played.
{{IO|DisableCollision|Tells the prop to no longer be solid.}}
; <code>SetBodyGroup <[[int]]></code>
{{IO|EnableCollision|Tells the prop to become solid again.}}
: Set the index of the visible [[$bodygroup]].
{{IO|SetAnimationNoReset|param=string|since=AS|Force the prop to play an animation unless the prop is already playing the animation. The parameter should be the name of the animation.}}
; <code>TurnOn</code>
{{IO|FadeAndKill|since=P2|Fade out then remove this prop.}}
; <code>TurnOff</code>
: Control the prop's visibility.
; <code>EnableCollision</code>
; <code>DisableCollision</code>
: Control collisions with the prop.
{{IO|SetAnimationNoReset|Force the prop to play an animation unless the prop is already playing the animation. The parameter should be the name of the animation.|param=string|since=AS}}
{{IO|SetLightingOrigin|Set the prop's lighting origin to that of a specified [[info_target]].<br /> This input is not included in Valve's [[FGD]]s.|nofgd=1}}
{{IO|BecomeRagdoll|Change into a ragdoll immediately.|since=P2}}
{{IO|FadeAndKill|Fade out then remove this prop.|since=P2}}
{{ScrollBox|
{{I Studiomodel}}
{{I BaseFadeProp}}
{{I BreakableProp}}
{{I RenderFields}}
{{I Parentname}}
}}
}}

Revision as of 06:46, 12 September 2018

DynamicProp:

SetAnimation <string>
Forces the prop to play the named animation.
SetDefaultAnimation <string>
Changes the animation played when not in a random/forced sequence.
SetPlaybackRate <float>
Sets the framerate at which animations are played.
TurnOff
Hides the prop through EF_NODRAW. The Disable input does the exact same thing.
TurnOn
Shows the prop (by removing EF_NODRAW). The Enable input does the exact same thing.
DisableCollision
Tells the prop to no longer be solid.
EnableCollision
Tells the prop to become solid again.
SetAnimationNoReset <string> (in all games since Alien Swarm)
Force the prop to play an animation unless the prop is already playing the animation. The parameter should be the name of the animation.
FadeAndKill  (in all games since Portal 2)
Fade out then remove this prop.