Index
Beams

SetBeamColor

SetBeamColor(<-beamUID <-color)

Description

Set a beams color. Possible color values are:

The default color is 'white' and will be used if an invalid color value is supplied.

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
 
 SetBeamColor(<-beam "green")

Index