Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Who is editing a prim?

Zozo Plympton
Registered User
Join date: 26 Oct 2006
Posts: 26
07-04-2008 09:49
Hi guys and girls (if any :)

Is there a way to find out who is editing a given script?

I have a "patrol" object which uses llMoveToTarget() while beeing physical to move along a given path. When somebody right clicks on it and chooses Edit the object won't move any more but will stay "put". I would like to Eject the editing guy :)

Any ideas?

Thanks!
IBME Swindlehurst
Registered User
Join date: 5 Mar 2007
Posts: 139
07-04-2008 10:37
Can you use llDetectedKey(0) in the TOUCH event?
Zozo Plympton
Registered User
Join date: 26 Oct 2006
Posts: 26
07-04-2008 10:47
That won't trigger for a right mouse click :(
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
07-04-2008 10:55
you can still use the sensor although it can't tell who touched it only who was within a certain range.
You may combine it with a test for freeze using llGetPos() and/or llGetVel().
_____________________
From Studio Dora
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
07-04-2008 11:09
You could also use non-physical instead of physical movement, which would stop it being frozen in that way.
_____________________
http://ordinalmalaprop.com/forum/ - visit Ordinal's Scripting Colloquium for scripting discussion with actual working BBCode!

http://ordinalmalaprop.com/engine/ - An Engine Fit For My Proceeding, my Aethernet Journal

http://www.flickr.com/groups/slgriefbuild/ - Second Life Griefbuild Digest, pictures of horrible ad griefing and land spam, and the naming of names
Zozo Plympton
Registered User
Join date: 26 Oct 2006
Posts: 26
07-04-2008 11:12
Yeah.. I have all this in place. I can detect when it is edited with llGetPos() returning the same value.. and I can turn it into non physical movement... but it is so much nicer to have the smooth/non choppy movement of the physical thing :)
And the guy editing it does really deserver the Eject!
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
07-04-2008 11:18
Indeed, I do appreciate the problem. I much prefer to use physical movement myself. Perhaps it could switch from phys to nonphys when it detects that it has stopped moving, then back again after a while?
_____________________
http://ordinalmalaprop.com/forum/ - visit Ordinal's Scripting Colloquium for scripting discussion with actual working BBCode!

http://ordinalmalaprop.com/engine/ - An Engine Fit For My Proceeding, my Aethernet Journal

http://www.flickr.com/groups/slgriefbuild/ - Second Life Griefbuild Digest, pictures of horrible ad griefing and land spam, and the naming of names