User Tools

Site Tools


crpl:docs:getfieldcell

<- CRPL reference <- Creeper Commands

GetFieldCell

ArgumentsResultNotation
X, Y Creeper_U/D, Creeper_R/L, AC_U/D, AC_R/L x1 y1 – n1 n2 n3 n4

Description

Gets the field strength at the specified location.

This command uses integer creeper (1000000 units per creeper pushed sideways).

Examples

Detect whether a given coordinate is within a creeper field. (The most common way that this would be true would be if the space were within an active shield.)

:InField
	GetFieldCell(<-x <-y) ->acRL ->acUD ->creeperRL ->creeperUD
	if (<-creeperUD neq0 or (<-creeperRL neq0)) return (TRUE) endif
	return(FALSE)
crpl/docs/getfieldcell.txt · Last modified: 2015/03/28 11:23 by warren