CFuncMoveLinear/notes
Jump to navigation
Jump to search
{{Autolang
|

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.
Code Fix:See here for a code fix.
Confirm:Might be fixed in Portal 2? Parented movelinears are used extensively for this game's piston platforms.


|zh=

SetPosition
输入和 Start Position(起始位置)键值不执行任何边界检查,因此可以使用小于 0 和大于 1 的值。负值将沿与移动方向相反的方向移动,大于 1 的值将以设置的 Move Distance(移动距离)的倍数移动。越过打开/关闭后的位置不会触发OnFullyOpen
和OnFullyClosed
输出。
Code Fix:有关代码修复,请参见此处。
Confirm:也许在传送门 2 中修复了?父级移动线性广泛用于该游戏的活塞平台。

