Skip to content

LaserColor

The color of the beam a railgun system draws.

Specification
Applies to
ParticleSystemType
File
rules.ini
Section
[<ObjectType ID>]
Value
colour (R,G,B)
When omitted
0,0,0

Three comma-separated channel values from 0 to 255. The beam is drawn as a single line in this color, with none of the glow a weapon’s own beam carries, so this is the whole of its appearance. It is read only where Laser=yes is set on a Railgun system; every other behavior ignores it.

rules.ini
[MyRailgunSys] ; a ParticleSystemType registered in [ParticleSystems]
BehavesLike=Railgun
HoldsWhat=MyRailgunPart ; a ParticleType registered in [Particles]
Laser=yes
LaserColor=255,128,0 ; orange

Above the lowest detail setting a channel set to zero is not blended at all: the pixels the beam crosses keep their own value on that channel. 255,128,0 therefore tints what it crosses red and green and leaves the blue beneath it alone, and a color left at black draws no visible beam whatever Laser=yes asks for. The lowest setting drops the rule and paints the line flat in the color as given, so black draws a black beam there.