|
Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
|
07-08-2006 08:37
Okay, I'm working on a simple weapon effect (no push, I hate push weapons). Anyway, I need to take the avatar's controls in order to do this, however, I've run into an oddity.
For some reason, despite being an attachment, the script is always asking (with a dialogue) for the TAKE_CONTROLS permission. The only thing I can think of is that it is situated in a child prim of the gun, rather than the root prim, anyone know if this is likely to be the reason?
Does a script taking controls HAVE to be in the attached root prim to work correctly? My wings work fine, but the scirpt is in the root prim for those and go by controls.
_____________________
Computer (Mac Pro): 2 x Quad Core 3.2ghz Xeon 10gb DDR2 800mhz FB-DIMMS 4 x 750gb, 32mb cache hard-drives (RAID-0/striped) NVidia GeForce 8800GT (512mb)
|
|
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
|
07-08-2006 09:17
From: Haravikk Mistral Does a script taking controls HAVE to be in the attached root prim to work correctly? My wings work fine, but the scirpt is in the root prim for those and go by controls. http://secondlife.com/badgeo/wakka.php?wakka=llRequestPermissions"Q: When requesting permissions from an attachment, permissions are automatically granted if the script requesting them is in the root prim. However, if the script is in a child prim, the user will always see a permissions dialog. Is this supposed to happen or a bug? A: This is presumably a bug. If you need a script in a child prim, and want the object to be quiet, place a corresponding script in your root prim to request permissions, then use link messages to communicate between the two."
|