User Tools

Site Tools


crpl:docs:getfieldcell

This is an old revision of the document!


~~DISCUSSION~~ <- 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.

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.1419077625.txt.gz · Last modified: 2014/12/20 07:13 by stewbasic