Talk:LlTakeControls

From Second Life Wiki
Jump to navigation Jump to search

There must certainly be more CONTROL_<KEY> codes.

There aren't! -- Strife Onizuka 08:30, 3 May 2008 (PDT)
There are a few JIRA items raised related to this; I raised a pretty detailed one here. --   ¥    Reynard  01:32, 10 January 2011 (UTC)

Shift States

OK then, given that those few are the only recognized key/button presses, what about shift state modifiers SHIFT/CTRL/ALT? yes, no, maybe?

Again, sorry, no. The only effect shift has is changing the ROT_(LEFT/RIGHT) to just (LEFT/RIGHT). -- Strife Onizuka 14:11, 3 May 2008 (PDT)

Does anyone have a list of the blacklisted functions?

And is llTakeControls(1, TRUE, TRUE) acceptable, or is that not recommended? --Stickman 23:16, 20 June 2008 (PDT)

  • Answering my own stupid question, "1" is 0x00000001, which is CONTROL_FWD. Only. --Stickman 23:31, 20 June 2008 (PDT)
llPushObject is purported to be one of the blacklisted functions, I don't really know about any others. -- Strife Onizuka 06:33, 21 June 2008 (PDT)


llPushObject works just fine in "no outside script" areas. It's ignored if target is not owner and "no pushing" is set on the parcel, but the script continues functioning just fine. (I'm removing the comment about blacklisted functions until someone finds one). -- Jopsy Pendragon 15 April 2010 (PDT)


Better examples?

As a newbie scripter I found the given example a bit inconclusive... Would it be possible to get an example that better illustrates the difference between level and edge, maybe something that would show how to tap a key without getting multiple events back as a for instance? :) I don't know enough about scripting or control and llTakeControl to mention the things that can be done with it, but there must be some really good scripters out there who knows ^^ - Kessalta Blackburn 05:23, 16 February 2011 (PST)

There isn't a ways to not get multiple events. Generally speaking the user will want to do one of two things with this: They want to know when a key is pressed or how long it is being held down and in which combination. You use edge to detect when a key is pressed and level to keep track of which ones are being held down. What can be more simpler than that? -- Strife (talk|contribs) 15:19, 18 February 2011 (PST)