Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

isWithinInteractReach

isWithinInteractReach(world, target, entity): boolean

Whether entity’s body stands within target’s Interact sphere, its radius plus the allowance a room gives a press, since its copy of the entity walks a move or two behind the player’s page’s. This is the one reach an interact press, a dialog’s pick and an open conversation each take. The body is met by its shape, as the Interact’s prompt meets it; one with no body in the scene by its capsule or its point. False where target has no Interact or either has no place.

Parameter Type
world World
target Entity
entity Entity

boolean