This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
4rpl:commands:setbeamwidth [2021/04/15 13:07] – Karsten75 | 4rpl:commands:setbeamwidth [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 10: | Line 10: | ||
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). | 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). | Because of this it is generally better to keep width relativly small (under 10 in most cases). | ||
+ | |||
+ | :NOTE: Beams become very difficult to see from long distances when they are a size lower than 0.35 so if you want the beam to always be visible, keep the width at a minimum of 0.35.\\ | ||
+ | This can also be useful when using a large number of beams such as targeting lasers for decorating purposes rather than functional purposes to ensure the player' | ||
===== Examples ===== | ===== Examples ===== | ||
Line 16: | Line 19: | ||
| | ||
#Fire a beam to extends off screen but is at the same height as the unit | #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 | + | #We will attach the beam to ourselves, so that the start point is relative to our unit |
- | | + | 3 -> |
- | | + | 4 ->width |
+ | | ||
+ | | ||
+ | | ||
+ | | ||
endonce | endonce | ||
GetUnitUpdateCount mod (5) ->width | GetUnitUpdateCount mod (5) ->width | ||
- | SetBeamWidth(< | + | SetBeamWidth(< |
- | endif | + | |
</ | </ | ||
< | < | ||