The response message is ObjectProperties.  Search the source for
_PREHASH_ObjectProperties and you see where a callback is set using
LLMessageSystem::setHandlerFuncFast.  It's
LLSelectMgr::processObjectProperties.
You can either add a line in there to call your other function, or look into
something like the patch here that would allow you to register multiple
handlers: http://jira.secondlife.com/browse/VWR-2546

But, if you only want the object name, RequestObjectPropertiesFamily and its
reply ObjectPropertiesFamily are cooler because you won't have to deselect
the object!

On Mon, Nov 30, 2009 at 10:37 AM, Lockwood, Nick <[email protected]>wrote:

>  I’m writing some (fairly simple) custom code to log what object is at a
> particular position on the screen every x seconds. I can successfully get an
> object and output it’s Id, number of faces, etc. But, here is my problem…
>
>
>
> I really want to log the name of the object. Looking at the code, it seems
> that this requires sending a message request to the server. I’ve been trying
> to utilize some of the code in the LLSelectMgr class, specifically in the
> selectObjectOnly() function. I can’t seem to get it to work, and I don’t
> really want to use LLSelectMgr. I want my code to be completely separate
> from other core aspects of the viewer. So, how would I go about using the
> messenger? I guess where I’m getting confused is where it runs
> gMessageSystem->sendReliable( regionp->getHost());.Where is the response
> message to that stored?
>
>
>
> Any help would be greatly appreciated. Thanks!
>
>
>
> Nick
>
> _______________________________________________
> Policies and (un)subscribe information available here:
> http://wiki.secondlife.com/wiki/SLDev
> Please read the policies before posting to keep unmoderated posting
> privileges
>
_______________________________________________
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/SLDev
Please read the policies before posting to keep unmoderated posting privileges

Reply via email to