User Tools

Site Tools


4rpl:commands:setbeamcolor

This is an old revision of the document!


Index
<- Beams

SetBeamColor

SetBeamColor(<-beamUID <-color)

Description

Set a beams color. Possible color values are:

  • “black”
  • “red”
  • “orange”
  • “yellow”
  • “green”
  • “blue”
  • “purple”
  • “white”

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 ourselfs, so that the start point is relative to our unit
   CreateBeam("orange" 3 4  0 1 0  10000 <-unitPos.Y 10000) ->beam
   AttachBeam(<-beam self)
endonce
 
 SetBeamColor(<-beam "green")

Index

4rpl/commands/setbeamcolor.1618491984.txt.gz · Last modified: 2025/02/14 14:56 (external edit)