Template:I FuncMoveLinear

From Valve Developer Community
Jump to navigation Jump to search

FuncMoveLinear:

Open
Move the brush to the end position (starting position + (move direction * move distance)).
Close
Move the brush to the starting position.
SetPosition <float>
Move the brush to a specific position, where 0 is the starting position and 1 is the starting position + (move direction * move distance).
SetSpeed <float>
Set the speed and update immediately.
TeleportToTarget <targetname> (only in Left 4 Dead 2)
Teleport to the origin of a given entity.
ResetPosition <float> (only in Left 4 Dead 2)
Set a new start position, parameter relative to wherever the current one is.
Todo: Parameter might actually be optional?