Difference between revisions of "Template:I DynamicProp"

From Valve Developer Community
Jump to: navigation, search
(bot-assisted)
 
m (Added to Input Templates category)
 
(12 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{i parentname}}
+
<noinclude>*<code>l4d2=1</code> shows inputs that are for l4d2 only. Similar ones are in CSGO, but they do ''not'' work!
*{{i studiomodel}}
+
*<code>preasw=1</code> hides SetAnimationNoReset and FadeAndKill.</noinclude>{{minititle|DynamicProp}}
*'''SetAnimation <string>'''
+
{{IO|SetAnimation|param=string|Forces the prop to play the named animation.}}
:Force the prop to play an animation. The parameter should be the name of the animation.
+
{{IO|SetDefaultAnimation|param=string|Changes the animation played when not in a random/forced sequence.}}
*'''SetBodyGroup <integer>'''
+
{{IO|SetPlaybackRate|param=float|Sets the framerate at which animations are played.}}
:Set the visible bodygroup, by index.
+
{{IO|TurnOff|Hides the prop through {{ent|EF_NODRAW}}. The <code>Disable</code> input does the exact same thing.}}
*'''TurnOn'''
+
{{IO|TurnOn|Shows the prop (by removing {{ent|EF_NODRAW}}). The <code>Enable</code> input does the exact same thing.}}
:Make the prop visible.
+
{{IO|DisableCollision|Tells the prop to no longer be solid.}}
*'''TurnOff'''
+
{{IO|EnableCollision|Tells the prop to become solid again.}}<!--
:Make the prop invisible.
+
-->{{#ifeq:{{{l4d2}}}|1|{{IO|StartGlowing|Enable any set glow effects on this prop.}}
 +
{{IO|StopGlowing|Disable any glow effects on this prop.}}|}}<!--
 +
-->{{#ifeq:{{{preasw}}}|1||{{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.}}
 +
{{IO|FadeAndKill|since=P2|Fade out then remove this prop.}}|}}<noinclude>
 +
[[Category:Input Templates|DynamicProp]]
 +
</noinclude>

Latest revision as of 18:29, 23 January 2020

  • 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.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.