User Tools

Site Tools


crpl:docs:getfieldcell

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Creeper Commands

GetCreeperColors

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

Description

Gets the field strength at the specified location.

Examples

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

:InField
	GetFieldCell(<-x <-y) ->creeperUD ->creeperRL ->acUD ->acRL
	if (<-creeperUD neq0 or (<-creeperRL neq0)) return (TRUE) endif
	return(FALSE)
crpl/docs/getfieldcell.1382758233.txt.gz · Last modified: 2014/10/01 15:02 (external edit)