Skip to content

LaserDuration

How many frames a laser beam stays drawn for.

Specification
Applies to
WeaponType
File
rules.ini
Section
[<ObjectType ID>]
Value
integer
When omitted
10

The beam advances one stage each frame and is taken off the screen once it reaches this figure, so the value is a lifetime in game frames — fifteen to the second. It governs only the colored line; the screen glow that accompanies a laser shot fades on its own fixed schedule of about 22 frames.

rules.ini
[MyObeliskRay] ; example WeaponType
IsLaser=yes
LaserDuration=15 ; one second

Like the rest of the beam settings, the figure is taken from the weapon in the object’s first slot whichever slot actually fired.

See alsoIsLaser, IsBigLaser