proximity
The proximity command is activiated when an object is within a distance of the block.



"if(proximity, object, method of comparison, distance)"


Argument Function
object The type of object to check for (player, enemy).
method of comparison The method in which the two values are being compared (>, <, =, >=, <=).
distance The distance from the object.



And example of the comparetimer command used in a script is as follows...




The following script checks if an enemy is within 32 units, and if so, the block explodes.


if(proximity,enemy,<=,32)
{
then(createexplosion,16,16,64,64)
then(destroy)
}