Template:I DynamicProp: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(uuuuuuuuuuuGHHHHHHHHHHHH updates)
(preasw param)
Line 6: Line 6:
{{IO|TurnOn|Shows the prop (by removing {{ent|EF_NODRAW}}). The <code>Enable</code> input does the exact same thing.}}
{{IO|TurnOn|Shows the prop (by removing {{ent|EF_NODRAW}}). The <code>Enable</code> input does the exact same thing.}}
{{IO|DisableCollision|Tells the prop to no longer be solid.}}
{{IO|DisableCollision|Tells the prop to no longer be solid.}}
{{IO|EnableCollision|Tells the prop to become solid again.}}
{{IO|EnableCollision|Tells the prop to become solid again.}}<!--
{{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.}}
-->{{#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.}}
{{IO|FadeAndKill|since=P2|Fade out then remove this prop.}}|}}

Revision as of 07:34, 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.