User Tools

Site Tools


4rpl:commands:setbeambrightness

Index
Beams

SetBeamBrightness

SetBeamBrightness(<-beamUID <-brightness)

Description

Set a beam's brightness. Values range from 0 to 10. A value of 0 is totally black. A value of 0.5 is half brightness. A value of 1 is full brightness. Values greater than 1 push the color into the HDR range and result is the beam blooming and glowing (if enabled in the player's graphics settings).

Examples

once
   GetUnitPosition(self) ->unitPos
   #Fire a beam to extends off screen but is at the same height as the unit
   #We will attach the beam to ourselves, so that the start point is relative to our unit
   3 ->brightness
   4 ->width
   CreateBeam("orange" <-brightness <-width) ->beam
   AttachBeam(<-beam self "")
   SetBeamStart(<-beam V3(0 0 0))
   SetBeamEnd(<-beam V3(10000 0 10000))
endonce
 
SetBeamBrightness(<-beam 5)

Index

4rpl/commands/setbeambrightness.txt · Last modified: 2021/04/15 12:25 by Karsten75