
Call LLViewerObject::requestInventory().Register an inventory listener with LLViewerObject::registerInventoryListener(LLVOInventoryListener* listener, void* user_data).The process to get inventory is asynchronous and you should :. Whist Objects in world can have inventory, LLViewerObjects do not *automatically* and it may need to be requested from the server. NB: I had difficulty sending multiple updates at once, it seemed i could send any one in isolation but i could not send for example a Rotation and a Position update, only the first sent would be respected. Also no one else would be able to see the changes.
HOW DO I UPDATE SL CACHE VIEWER UPDATE
If you do not send the updates back to the server, the object will snap back to the original settings as soon as an object update package is received from the server that over writes your settings. These functions all generate mesasges back to the server that contain the properties of the object.

Some of the available functions include :. Objects have quite a lot of properties that can be retrieved or set, which are available through accessor methods. ObjectUpdate messages are handled by gObjectList.processObjectUpdate() this either updates an existing object if it is contained within the object list, or creates a new LLViewerObject to represent the object the viewer has just discovered from a server message. LL_VO_GROUND: Not terrain, the stuff that's under the terrain.Įach Object is represented by an instance of the LLViewerObject class ( ) but this will be sub-classed based on the PCODE that was passed to the createObject() function, in most cases this is a LLVOVolume for a PCODE = LL_PCODE_VOLUME ( )

LL_PCODE_LEGACY_GRASS: Not legacy, I don't think. LL_PCODE_LEGACY_TREE: Actually not legacy, a normal linden tree. LL_PCODE_VOLUME: Most prims, includes attachments

A number of different types of viewer object exist, when an object is created the pcode variable passed to the createObject() function determines the object type:. ViewerObjects are most things you see on the screen, such as prims, particles, trees, avatars, etc. The viewer objects are contained in the global gObjectList, which is the only instance of the class LLViewerObjectList ( )
