Talk:LlTakeControls
There must certainly be more CONTROL_<KEY> codes.
- There aren't! -- Strife Onizuka 08:30, 3 May 2008 (PDT)
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)
I think I was a bit unclear, I'm sorry... I know that you get multiple events whenever you hit a key... I meant, show an example of how to only react to one event? If that makes more sense? I learn visually - and slowly :P - and I think I might not be the only one... It took me a while to figure out the one event per key stroke, and I figure it might benefit others if there were an example like that. I suppose I could make that myself, but given my rather green status, I thought it wiser to leave it to someone who know what they are doing... heh... -- Kessalta Blackburn 05:39, 19 February 2011 (PST)
I see what your getting at and it's a good point. This (kinda) relates to one of my (wiki) projects, so maybe I can kill two birds with one stone but I can't promise a time frame. -- Strife (talk|contribs) 21:04, 21 February 2011 (PST)
A note regarding accept/pass_on behavor.
SatguruS Resident's recent edit changes the description of FALSE/FALSE to state that the specified controls are disabled.
While this would be logical behavior, it is not the actual behavior; All unspecified controls are disabled instead.
A bug, no doubt, but to fix it now would break content, as this is a commonly used means of immobilizing a user. -- Faust(T|C) 03:09, 10 March 2012 (PST)