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

LaserDuration sets how many game frames the colored beam of an IsLaser=yes weapon stays on screen. The beam looks the same on every frame, with no fading or blinking, and disappears when the time is up. The screen glow drawn at the high detail level ignores this value and fades out over about 22 frames.

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

Like the other beam settings, the value is read from the weapon in the object’s first weapon slot, whichever slot fired.

See also — IsLaser, IsBigLaser