Script Function: scan

From Ultima Online: The Second Age
Revision as of 16:53, 19 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> scan() { Engine Function:_clearList|<span style="color:#FF0000;font-weight:bold">cle...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
function void scan()
{
  clearList(Q4QN);
  if (hasObjVar(this, "findMobiles"))
  {
    getMobsInRange(Q4QN, getLocation(this), 0x1388);
  }
  else
  {
    if (hasObjVar(this, "findPlayers"))
    {
      getPlayersInRange(Q4QN, getLocation(this), 0x1388);
    }
  }
  Q5E0 = Q4P7(Q4QN);
  return ();
}