Template:I DynamicProp: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
<noinclude>{{lang|Template:I DynamicProp}}
<noinclude>{{lang|Template:I DynamicProp}}
*<code>l4d2=1</code> shows inputs that are for l4d2 only. Similar ones are in CSGO, but they do ''not'' work!
*<code>l4d2=1</code> shows inputs that are for l4d2 only. Similar ones are in CSGO, but they do ''not'' work!
*<code>preasw=1</code> hides SetAnimationNoReset and FadeAndKill.</noinclude>{{minititle|DynamicProp}}
*<code>preasw=1</code> hides SetAnimationNoReset and FadeAndKill.</noinclude>{{minititle|CDynamicProp}}
{{IO|SetAnimation|param=string|Forces the prop to play the named animation.}}
{{IO|SetAnimation|param=string|Forces the prop to play the named animation.}}
{{IO|SetDefaultAnimation|param=string|Changes the animation played when not in a random/forced sequence.}}
{{IO|SetDefaultAnimation|param=string|Changes the animation played when not in a random/forced sequence.}}

Revision as of 15:20, 9 September 2024

  • l4d2=1 shows inputs that are for l4d2 only. Similar ones are in CSGO, but they do not work!
  • preasw=1 hides SetAnimationNoReset and FadeAndKill.CDynamicProp:
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.