# ScriptBox.contains [← ScriptBox](index.md) · [← Master](../../wiki.md) contains(double x, double y, double z) Checks if given coordinates are inside of this box function main(c) { var box = boolean mappet.box(-10, 4, -10, 10, 6, 10); if (box.contains(0, 4, 0)){ c.send("this point is inside the box") } if (box.contains(0, 7, 0)){ c.send("this point is outside the box") } } --- contains(ScriptVector vector) Checks if given coordinates are inside of this box function main(c) { var subject = boolean c.getSubject(); var subjectPosition = subject.getPosition(); var box = mappet.box(-10, 4, -10, 10, 6, 10); if (box.contains(subjectPosition)){ c.send("the player in in the box") } } boolean contains(Vector3d vector)