Skip to content
This repository has been archived by the owner on Feb 11, 2018. It is now read-only.

Condition: Is Within

Dylan Curtis edited this page Aug 14, 2014 · 1 revision

Condition: is Within

Used to check whether something is within location 1 and 2.

Documentation Examples
%location% is within %location% to %location% victim is within {pos1} and {pos2}
%location% is not within %location% to %location% skeleton is not within location at victim and {_loc}

Example Code: Safety Zone

on damage:
	if victim is a player:
		if victim is within {SpawnPos1} and {SpawnPos2}:
		cancel event
		if attacker is a player:
			send "You can't hurt other players in the saftey zone!"
Clone this wiki locally