|
Abraxes Binder
Registered User
Join date: 23 May 2008
Posts: 205
|
05-26-2008 03:44
Hi, i have a central controller-prim, and 1 linked and named sitting-place, whitch has 3 different poses in it.
(this 'one sit-target w. 3 poses' does not have to be the solution, if 3 seperate targets is a better solution?)
I would like that from the central controller-prim a user could choose the sitting-place-prim and change the pose. My questions would be: *from one prim (controller) can i set a named prim as a 'target' -for instance a sittarget, but also more generally speaking: How can i obtain a handle on any named prim from a clicked ('activated') prim, in a listen-event?
I imagine something like (in pseudo-code)..
listen(integer _ch, string _nm, key _id, string _msg)//interfacing { mof=<getMeHandleFor(llSitTarget(<0,0,.1>, ZERO_ROTATION))> //mof is the named sittarget key agent = llAvatarOnSitTarget();//target refering to the obtained handle if(agent) //for obtained handle.. { :
tyia ab
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
05-26-2008 04:00
From: Abraxes Binder Hi, i have a central controller-prim, and 1 linked and named sitting-place, whitch has 3 different poses in it.
(this 'one sit-target w. 3 poses' does not have to be the solution, if 3 seperate targets is a better solution?)
I would like that from the central controller-prim a user could choose the sitting-place-prim and change the pose. My questions would be: *from one prim (controller) can i set a named prim as a 'target' -for instance a sittarget, but also more generally speaking: How can i obtain a handle on any named prim from a clicked ('activated') prim, in a listen-event?
I imagine something like (in pseudo-code)..
listen(integer _ch, string _nm, key _id, string _msg)//interfacing { mof=<getMeHandleFor(llSitTarget(<0,0,.1>, ZERO_ROTATION))> //mof is the named sittarget key agent = llAvatarOnSitTarget();//target refering to the obtained handle if(agent) //for obtained handle.. { :
tyia ab Short anwer is no I dont think so. A prim can, as far as I am aware, only have one active sit target. But to answer the generalised question, there is really no such thing as a handle to a linked prim. You can however if you know the name search the link set and obtain its link number and then use the SetLink functions on it remotely.
_____________________
I'm back......
|
|
Abraxes Binder
Registered User
Join date: 23 May 2008
Posts: 205
|
05-27-2008 02:09
Newgate, Thanks for the explanation BR ab
|