script question
|
|
MoodbooM Boxen
Registered User
Join date: 2 Jul 2009
Posts: 3
|
07-06-2009 10:47
is it possible to force an animation on an avatar without permission... i made a stand of holy water and id like for my vampire friends to click on it ... it says something, but id like it to make them do the "freakout" animation as well... id likeit to suprise them so i dont want to ask theyre permission to animate...i hope that makes sense...
thanks
|
|
LittleMe Jewell
...........
Join date: 8 Oct 2007
Posts: 11,319
|
07-06-2009 11:01
You might want to try the Scripting Tips forum: /54/1.html
_____________________
♥♥♥ -Lil
Why do you sit there looking like an envelope without any address on it? ~Mark Twain~ Optimism is denial, so face the facts and move on. ♥♥♥ Lil's Yard Sale / Inventory Cleanout: http://slurl.com/secondlife/Triggerfish/52/27/22 . http://www.flickr.com/photos/littleme_jewell
|
|
Rhonda Huntress
Kitteh Herder
Join date: 21 Dec 2008
Posts: 1,823
|
07-06-2009 11:12
From: MoodbooM Boxen is it possible to force an animation on an avatar without permission... No. Not only no but hell no. The possibility for abuse is ... well, scratch that - abuse is the only reason for it.
|
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
07-06-2009 11:13
Set the touch action to "sit" and run the animation when the avatar sits on the object.
|
|
Rhonda Huntress
Kitteh Herder
Join date: 21 Dec 2008
Posts: 1,823
|
07-06-2009 11:39
It will still need permission and will have to ask with a blue popup.
|
|
Marcush Nemeth
Registered User
Join date: 3 Apr 2007
Posts: 402
|
07-06-2009 11:44
For most people: not when they sit on something, in that case they automatically accept animations that are in the object they sit on (object will still need a pose script). So you'll just have to think up something to make your friends want to sit on the poseball. You could try something like obscuring it to look like a teleporter or give it another text, like "shadowfighting" instead?
|
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
07-06-2009 11:45
From: Rhonda Huntress It will still need permission and will have to ask with a blue popup. If you sit on an object it gets implicit permission. The reason SOME multi-pose furniture has to ask permission is because the balls are dummies... they aren't linked to the bed's base so the animation isn't being done by the object that you're sitting on.
|
|
Cortex Draper
Registered User
Join date: 23 Aug 2005
Posts: 406
|
07-06-2009 11:45
From: Rhonda Huntress It will still need permission and will have to ask with a blue popup. No it won't. Argent is correct. I have just tested it.
|
|
Rhonda Huntress
Kitteh Herder
Join date: 21 Dec 2008
Posts: 1,823
|
07-06-2009 12:12
From: Cortex Draper No it won't. Argent is correct. I have just tested it. Test it with something you are not the owner of. It makes a difference.
|
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
07-06-2009 12:23
From: Rhonda Huntress Test it with something you are not the owner of. It makes a difference. I can't go into the world right now, but I can tell you how to test it. Go to http://xrl.us/skyhook23 and walk to the near end of the runway, near the model of the glider. There is a blue box on the ground. Click it. A copy of my glider "Moewe" will appear. Sit on it. If you get a blue permissions dialog before Moewe runs an animation on you I'll give you a free copy of Moewe and anything else in my store. In fact, Rhonda, I'll give you a free copy just for testing it. 
|
|
Nina Stepford
was lied to by LL
Join date: 26 Mar 2007
Posts: 3,373
|
07-06-2009 12:31
i promise you you will never get asked permission when you sit on our furniture. From: Rhonda Huntress Test it with something you are not the owner of. It makes a difference.
_____________________
SLU - ban em then bash em! ~~GREATEST HITS~~ pro-life? gtfo! slu- banning opposing opinions one at a time http://www.sluniverse.com/php/vb/zomgwtfbbqgtfololcats/15428-disingenuous.html learn to shut up and nod in agreement... or be banned! http://www.sluniverse.com/php/vb/off-topic/1239-americans-not-stupid.html
|
|
Nina Stepford
was lied to by LL
Join date: 26 Mar 2007
Posts: 3,373
|
07-06-2009 12:33
it should be pointed out that a vampire would only need to accept this permission once. from then til forever, the vampire will not be asked permission, no matter what the animation or object name. if the priest could get them to click a white box that said 'click me', in the future that prim could be made invisible, placed over an item, and trigger any animation desired, without the popup permission dialog.
_____________________
SLU - ban em then bash em! ~~GREATEST HITS~~ pro-life? gtfo! slu- banning opposing opinions one at a time http://www.sluniverse.com/php/vb/zomgwtfbbqgtfololcats/15428-disingenuous.html learn to shut up and nod in agreement... or be banned! http://www.sluniverse.com/php/vb/off-topic/1239-americans-not-stupid.html
|
|
Nina Stepford
was lied to by LL
Join date: 26 Mar 2007
Posts: 3,373
|
07-06-2009 12:34
so this will be an exercise in social engineering rather than a scripted solution.
_____________________
SLU - ban em then bash em! ~~GREATEST HITS~~ pro-life? gtfo! slu- banning opposing opinions one at a time http://www.sluniverse.com/php/vb/zomgwtfbbqgtfololcats/15428-disingenuous.html learn to shut up and nod in agreement... or be banned! http://www.sluniverse.com/php/vb/off-topic/1239-americans-not-stupid.html
|
|
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
|
07-06-2009 13:00
From: Nina Stepford it should be pointed out that a vampire would only need to accept this permission once. from then til forever, the vampire will not be asked permission, no matter what the animation or object name. Assuming the script they gave permission to was always used, and never reset, recompiled, or never released the permission... 
|
|
Marcush Nemeth
Registered User
Join date: 3 Apr 2007
Posts: 402
|
07-06-2009 13:05
Well, I just went to Argent's place. Partly because he was bugging me with his Moewe somewhere else already, and I just HAD to try now. For the other part because I was DEFINITELY sure that sitting on objects does NOT give an animation request, but I was starting to doubt myself now, and this little test gave the following result: Without asking permission, the object, a vehicle which I never sat on before, not only animated me into a pose I had NEVER in my second life taken on before, but also redirected my movement commands to divert to the object, instead of me. All without asking! And yes, this is a default setting. However, this default setting *can* be overridden and turned of, I think the option for that is hidden somewhere in the advanced or debug menu. It's been a while since I saw it, but I know it's somewhere 
|
|
Deira Llanfair
Deira to rhyme with Myra
Join date: 16 Oct 2006
Posts: 2,315
|
07-06-2009 13:08
From: Darien Caldwell Assuming the script they gave permission to was always used, and never reset, recompiled, or never released the permission...  ... the permission applies only within the sim though. The object containing the script needs to stay rezd in the sim - if it is taken back into inventory and re-rezd, the script will be reset.
_____________________
Deira  Must create animations for head-desk and palm-face!.
|
|
Deira Llanfair
Deira to rhyme with Myra
Join date: 16 Oct 2006
Posts: 2,315
|
07-06-2009 13:15
From: Marcush Nemeth And yes, this is a default setting. However, this default setting *can* be overridden and turned of, I think the option for that is hidden somewhere in the advanced or debug menu. It's been a while since I saw it, but I know it's somewhere  Are you sure? I've never come across it. When you choose to "sit" on any sort of prim, it is assumed that you have implicitly given permission to animate and no request blue box is needed.
_____________________
Deira  Must create animations for head-desk and palm-face!.
|
|
Marcush Nemeth
Registered User
Join date: 3 Apr 2007
Posts: 402
|
07-06-2009 13:24
Pretty sure, yes.
Oh, and as for giving permission to get animated: you actually give permission to the script to animate you, not to the object. And a script is limited to remembering the permission for only 1 avatar at a time. So if you give some script permission to animate you, and somebody else gives the same script permission to animate him/her after you do, then you'll have to give permission again to get animated again later.
This is why multi-dance machines *always* come with a limitation to the amount of people that can dance simultaniously, and why you always see so many copies of the same script (exactly the amount of scripts as the amount of people it can handle plus 1) in those things (with the additional "root script" to keep track of them)
|
|
Rhonda Huntress
Kitteh Herder
Join date: 21 Dec 2008
Posts: 1,823
|
07-06-2009 15:21
From: Argent Stonecutter I can't go into the world right now, but I can tell you how to test it. Go to http://xrl.us/skyhook23 and walk to the near end of the runway, near the model of the glider. There is a blue box on the ground. Click it. A copy of my glider "Moewe" will appear. Sit on it. If you get a blue permissions dialog before Moewe runs an animation on you I'll give you a free copy of Moewe and anything else in my store. In fact, Rhonda, I'll give you a free copy just for testing it.  I don't think your touch sit is working. Touching didn't do anything. I could right-click and "Sit Here" but that just sat me on the top. 
|
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
07-06-2009 15:25
From: Rhonda Huntress I don't think your touch sit is working. I don't have touch sit turned on, that's not the point, the point is that when you sit on an object that object gets animation permissions. From: someone Touching didn't do anything. I could right-click and "Sit Here" but that just sat me on the top.  Would you mind doing that again when I'm there because I have NEVER seen that. Did it say "Sit Here" or "Fly"? Did you get a permissions dialog?
|
|
Rhonda Huntress
Kitteh Herder
Join date: 21 Dec 2008
Posts: 1,823
|
07-06-2009 15:33
It said "Sit Here." No dialog either.
And I thought forcing animation by touch-sit was the point ...
|
|
Nimbus Rau
Salmon pie? Where?
Join date: 15 Apr 2007
Posts: 292
|
07-06-2009 15:39
Letmeguess, you were wearing an AO when you sat on the glider, right? Try it again with the AO turned off. Betcha get a different result.
|
|
Destiny Niles
Registered User
Join date: 23 Aug 2006
Posts: 949
|
07-06-2009 16:39
/me wonders who are these padawans that darn question the great Argent. Be kind to them.
|
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
07-06-2009 17:17
From: Rhonda Huntress It said "Sit Here." No dialog either.
And I thought forcing animation by touch-sit was the point ... There's nothing special about touch sit, the same things happen if you sit either way. The thing is, getting the animation set when you sit without a dialog. If you didn't get a dialog OR an animation, that means the script wasn't running at all. Script time in that sim is currently 18ms! No wonder it's not working. I'll give you the free plane anyway. Edit: Right after I posted net time went to 108ms and I froze. Getting a restart. 
|
|
Scylla Rhiadra
Gentle is Human
Join date: 11 Oct 2008
Posts: 4,427
|
07-06-2009 18:16
From: Rhonda Huntress No. Not only no but hell no. The possibility for abuse is ... well, scratch that - abuse is the only reason for it. Um, is no one else finding this whole conversation a bit scary? I keep getting told that EVERYTHING in SL is "consensual" . . .
_____________________
Scylla Rhiadra
|