This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:getfieldcell [2013/10/31 01:28] – Lost in Nowhere | crpl:docs:getfieldcell [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | ||
<- [[crpl: | <- [[crpl: | ||
===== GetFieldCell | ===== GetFieldCell | ||
^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
- | | X, Y | AC_R/L, AC_U/D, Creeper_R/ | + | | X, Y | Creeper_U/D, Creeper_R/ |
=== Description === | === Description === | ||
Gets the field strength at the specified location. | Gets the field strength at the specified location. | ||
+ | |||
+ | This command uses integer creeper (1000000 units per creeper pushed sideways). | ||
=== Examples === | === Examples === | ||
- | Detect whether a given coordinate is within a field. | + | Detect whether a given coordinate is within a creeper |
< | < | ||
- | GetFieldCell(< | + | GetFieldCell(< |
if (< | if (< | ||
return(FALSE) | return(FALSE) | ||
- | </ | + | </ |