Skip to main content

env_spritetrain

env_spritetrain icon
Point entityPorted from Featureful

An env_spritetrain moves a sprite along a path of path_corner entities, the way a func_train moves a brush. It isn't solid.

It uses the speed and the wait of each path_corner, fires their targets and obeys their teleport flag, and like a func_train, it starts by itself when it has no name.

Attributes​

The entity also has these common keys:

  • Appearance: Render FX, Render Mode, FX Amount and FX Color
KeyDescriptionDefault
Nametargetname

Triggering the entity starts or stops the train, and Obey Trigger Mode sets how. Without a name, the train starts by itself. See Common keys.

Sprite Namemodel

Sets the sprite that moves along the path.

Default sprites/glow01.spr
Sprite Scalescale

Sets the size of the sprite, so 0.5 is half and 2 is double.

If you leave this key empty, the sprite has its normal size.

Framerateframerate

Sets how many frames per second the sprite plays, and 0 shows only its first frame.

Default 10.0
First stop targettarget

Names the first path_corner of the path.

Speedspeed

Sets how fast the sprite moves, in units per second, until a path_corner sets another speed, and 0 means 100.

Default 64
Obey Trigger Modem_iObeyTriggerMode

Sets how a trigger starts and stops the train.

  • No (0) - Every trigger starts a stopped train or stops a moving one
  • Yes (1) - On starts it, Off stops it and Toggle switches it
Default No (0)
Sound Volumevolume

Sets how loud the move and stop sounds are, up to 1 for full volume.

If you leave this key empty or set 0, it is 0.85.

Default 0.85
Move Soundnoise

Sets the sound that loops while the train moves.

Stop Soundnoise1

Sets the sound the train plays when it stops.

Flags​

4Initially On

The train starts moving when the map starts

Notes​

  • With the render mode Normal, the sprite is drawn as Additive, so its colors are added to what is behind it
  • With an FX Amount of 0, the sprite is drawn at full brightness, and a negative amount makes it invisible

See also​

Changes since 1.38​

  • env_spritetrain is new in SBO 2.0.0