ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
SDK Function (Wishlist)
SDK Function // Wishliststrike rapierAug 2, 2002, 3:43pm
Id love a function that allows you to call something like
ObjectConfirm(Number, Model, Description, Action,X,Y,Z,YAW) on a object and have the SDK return if that object given is in existance and at the given coords etc - Mark jermeAug 2, 2002, 11:57pm
Why don't you write the function, and put it in a library... Distribute
it.... That way you can use it just like you would a SDK function. Just include your liberary, and call the function from it........ Better yet... Write the function in c or C++, make sure it's clean and good code. Then e-mail it to the dev team. After reviewing it, maybe they'll add it the SDK.... That's all they'd do anyway. They'd write a function that relies the other SDK functions that are already in place.... -J -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jeremy Booker - Owner JTech Web Systems www.JTechWebSystems.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Therefore do not worry about tomorrow, for tomorrow will worry about itself. Each day has enough trouble of its own." -Mathew 5-34 [View Quote] strike rapierAug 3, 2002, 12:43pm
grimbleAug 3, 2002, 1:20pm
Since the lowest precicision you can get at the moment is cell level (I
think the reasons why are clear to most), the best you can do with the SDK as it stands is to query a single cell using aw_cell_next. Unfortunately, this isn't a real-time facility and has to be used asynchronously, looking at the whole cell contents for the object you're searching for so you can only really put a nasty loop in the code until either the object is found or the cell is complete. Demeter does this a lot with a "fire and forget" query from the cache as someone that has an enabled terrain session approaches a cell its unaware of so that it can maintain a record of "confirmed" terrain markers for speed. If you're interested, this is a simple function to build an AW_CELL_ITERATOR value for use with aw_cell_next for a specific cell (in VB - its even easier in C). Just build the iterator, set the AW_CELL_COMBINE flag if you want to (depends how many you're going to do and where the objects are in respect to eachother) and call aw_cell_next. You might find a way to use it. Public Function AWBuildCellIterator(ByVal CellX As Long, ByVal CellZ As Long) As Long AWBuildCellIterator = "&H" & Right("0000" & Hex(CellX), 4) & Right("0000" & Hex(CellZ), 4) End Function Grims. [View Quote] strike rapierAug 3, 2002, 4:58pm
Thanks :) Its a pitty that there is no real time action, like being able to
save to cache and only been show the updates like in aw - Mark [View Quote] |