Template:FuncMoveLinear notes: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(the idea behind the move is when editing pages that use this template, the transcluded main namespace page is listed at the top in the 'Templates used on this page:' and also it's easier to make translations for regular users)
No edit summary
 
Line 1: Line 1:
__NOEDITSECTION__
__NOEDITSECTION__
== Preview {{ulf|en=1|zh=1|no-right-align=1}} ==  
== Preview {{ulf|en=1|zh=1|no-right-align=1}} <small>[{{PageCreateLink|alt={{int:edit}}|create = :{{langprefix}}CFuncMoveLinear/notes}}]</small> ==
<onlyinclude>{{:{{langprefix}}CFuncMoveLinear/notes}}</onlyinclude>
<onlyinclude>{{:{{langprefix}}CFuncMoveLinear/notes}}</onlyinclude>

Latest revision as of 10:00, 18 September 2024

Preview English (en)中文 (zh) [Edit]

Note.pngNote:The SetPosition input and Start Position keyvalue do not perform any bounds checking, so values less than 0 and greater than 1 can be used. Negative values will move in the opposite direction to the movement direction, and values greater than 1 will move it in multiples of the set Move Distance. Moving past the opened/closed position does not trigger the OnFullyOpen and OnFullyClosed outputs.
Icon-Bug.pngBug:There are bugs that may arise when parenting this entity to any of these: func_movelinear, func_lookdoor, func_water_analog. A func_door (or for func_water_analog, func_water) can be used as a workaround. (see here for a code fix)[ Code Fix]
Confirm:Might be fixed in Portal 2? Parented movelinears are used extensively for this game's piston platforms.