This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:setbeamend [2021/01/08 16:01] – external edit 127.0.0.1 | 4rpl:commands:setbeamend [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
- | < | + | < |
+ | < | ||
+ | |||
====== SetBeamEnd ====== | ====== SetBeamEnd ====== | ||
Line 10: | Line 13: | ||
For a beam that is attached to a unit, the end position REMAINS IN WORLD COORDINATES unless the beam has been set to SetBeamForceLocalEnd. | For a beam that is attached to a unit, the end position REMAINS IN WORLD COORDINATES unless the beam has been set to SetBeamForceLocalEnd. | ||
+ | **Important note:** If you are planning to create a continuous beam on a unit that will be moving while firing, do not attach the beam to the unit. An attached beam will be unable to maintain the correct visual orientation and length. An unattached beam so long as its' start location is updated will retain a correct visual orientation. | ||
===== Examples ===== | ===== Examples ===== | ||
<code 4rpl> | <code 4rpl> | ||
Line 15: | 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 | ||
SetBeamEnd(< | SetBeamEnd(< | ||
- | endif | ||
- | |||
</ | </ | ||
< | < | ||