4rpl:commands:setfieldcell
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
4rpl:commands:setfieldcell [2021/02/08 13:26] – Karsten75 | 4rpl:commands:setfieldcell [2025/02/14 14:57] (current) – external edit 127.0.0.1 |
---|
| |
In order to add to a field rather than set it, retrieve its current values first using [[GetFieldCell]], add to those values, then set those values as the new field. To erase the new field, do the same thing, but instead subtract what was previously added. Alternatively, you can use [[SetFieldRect]], which adds fields rather than sets them. | In order to add to a field rather than set it, retrieve its current values first using [[GetFieldCell]], add to those values, then set those values as the new field. To erase the new field, do the same thing, but instead subtract what was previously added. Alternatively, you can use [[SetFieldRect]], which adds fields rather than sets them. |
| |
| For reference:\\ |
| Shields have a field (total "strength") of 2000 throughout its radius. |
| |
===== Examples ===== | ===== Examples ===== |
<code 4rpl> | <code 4rpl> |
:Awake | :Awake |
SetFieldCell(50 40 false V2(1000000 1000000) | SetFieldCell(50 40 false V2(1000000 1000000)) |
</code> | </code> |
| |
<=[[4rpl:start| Index]] | <=[[4rpl:start| Index]] |
4rpl/commands/setfieldcell.1612790800.txt.gz · Last modified: 2025/02/14 14:56 (external edit)