Classes:PathFollower

From ZDoom Wiki

Jump to: navigation, search
Path follower
Actor type Script thing Game
DoomEd Number 9071 Class Name PathFollower

Classes: PathFollower

 →ActorMover
 →MovingCamera

A path follower is an invisible thing that follows a path of interpolation points and can provide something for a camera to aim it if you want the camera to follow a path with a complicated aiming sequence.

The path follower takes three parameters:

1. low byte: low byte of tid of first interpolation point in path.
2. high byte: high byte of tid of first interpolation point in path.
3. options: (Add any of the following values; i.e. for options 2 and 4, this parameter would be 6):
  • 1: path is linear instead of curved.
  • 2: Camera will adjust its angle to match those of the points it passes.
  • 4: Camera will adjust its pitch to match those of the points it passes.
  • 8: When used with 2 and/or 4, the camera faces in the direction of movement instead of the direction the interpolation points are facing.

Use the Thing_Activate special to start the path follower. The Thing_Activate takes a single parameter, the tid of the thing to activate. To stop a path follower use Thing_Deactivate. Thing_Deactivate takes one parameter, the tid of the thing to deactivate. If the camera is restarted using Thing_Activate, it will automatically start at the beginning of the path.

DECORATE definition

ACTOR PathFollower 9071 native
{
  +NOBLOCKMAP
  +NOSECTOR
  +NOGRAVITY
  +DONTSPLASH
}
Personal tools