UCC Reference

UI_npc_nearby2

[SI]

bool UI_npc_nearby2(object obj)
bool obj->npc_nearby2()

Finds out if the desired object is nearby. In this context, 'nearby' means within 40 tiles of the avatar. Note that, despite the name, this intrinsic is valid for all objects, not just NPCs.

Parameters

Parameter / value Description
obj The object to be checked.

Return

true if the object is within 40 tiles of the avatar, false otherwise.

Related intrinsics

Full intrinsic reference | Reference definitions