ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
Sanity checks for aw_query, how do they work?? (Sdk)
Sanity checks for aw_query, how do they work?? // Sdkabbot pabisokoAug 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) |