Thread

Sanity checks for aw_query, how do they work?? (Sdk)

Sanity checks for aw_query, how do they work?? // Sdk

1  |  

abbot pabisoko

Aug 16, 1999, 2:18pm
I have a Game Bot, where to get the scoreboard ready to go, you click on it,
and then the bot gets the coords of its cell, and its number, then uses that
information to use aw_query and find the objects coords, well it turns out
its always querying at gz, i think it might be because of my sanity check
wich looks like this:

if (sector_x < -1 + scoreboardx || sector_x > 1 + scoreboardx || sector_z
< -1 + scoreboardz || sector_z > 1 + scoreboardz)
return;



scoreboardx and scoreboardz come from aw_int(AW_CELL_X), and
aw_int(AW_CELL_Z)

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn