This is an old revision of the document!
SetBeamWidth(<-beamUID <-width)
Set a beam's width. The width is the thickness of the beam. Beams are made from flat geometry that attempts to face the player camera (as best it can). Because of this it is generally better to keep width relativly small (under 10 in most cases).
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 GetUnitUpdateCount mod (5) ->width SetBeamWidth(<-beam <-width)
⇐ Index