From Second Life Wiki
Jump to navigation Jump to search

It is rather unclear from the cut'n'paste of the sensor flags what llDetectedType actually returns for an avatar. I assume that in collisions, it'll always return AGENT/AGENT_BY_LEGACY_NAME? Or will it be AGENT_BY_LEGACY_NAME | AGENT_BY_USERNAME? For sensors, will it return the value the sensor was set up with, or some standard flag combination as per collision? Tali Rosca 14:44, 22 September 2010 (UTC)

I'm going to assume it returns just AGENT/AGENT_BY_LEGACY_NAME, as to return AGENT_BY_USERNAME would imply that llDetectedName is returning the Username. -- Strife (talk|contribs) 08:08, 27 December 2010 (UTC)

Add to category "Category:LSL_Detected"

I am a newbie to contributing to this wiki. When I edit this article, I see hardly any text which directly correlates to the article page so I can't figure out how to include this article in that category where it ought to be represented. :< Happ Macdonald 04:14, 27 December 2010 (UTC)

The template Template:LSL_Function/detected controls most the text in the article. Index related text can be found in Template:LSL Function/negative index but the specific text being included is controlled by parameters in the previously mentioned template. The reasoning being that there isn't any point in writing the same content over and over again for all of the articles that share the same general functionality. Templates work like calling a function, parameters are passed into it that direct how the content should be generated. The learning curve is pretty steep but it makes it easier to update a dozen articles.
Template:LSL_Function/detected was designed originally to automatically handle the category inclusion but it hadn't been updated for the new inject-* parameter usage. I've fix that. However in the future, to add an LSL article to an LSL category, there are some |cat* lines near the end, you just set one of them equal to the category you want to add it to. So in this case you could have done |cat5=Detected. Thanks for taking the time to ask and I hope my answer has helped explain things. I have some ideas on how to improve editing but it's a low priority project. -- Strife (talk|contribs) 07:52, 27 December 2010 (UTC)