User Tools

Site Tools


4rpl:commands:setbeamwidth

This is an old revision of the document!


Index
<- Beams

SetBeamWidth

SetBeamWidth(<-beamUID <-width)

Description

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).

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 1  0 1 0  10000 <-unitPos.Y 10000) ->beam
   AttachBeam(self <-beam)
endonce
 
GetUnitUpdateCount mod (5) ->width
SetBeamWidth(<-beam self)
endif

Index

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