|
Zibah Morang
Registered User
Join date: 26 Oct 2006
Posts: 1
|
01-09-2007 06:21
I'm using a script that embeds poses in furniture/objects. If I have a single pose, I get no errors and the script works fine. But once I linked objects with a pose in each, a "sit" will give the error
Object: Script trying to trigger animations but PERMISSION_TRIGGER_ANIMATION permission not set.
This error is only for the first time any Avatar sits - you dont get the error on subsequent sits from the same or different Avatar, and the poses work fine always.
Any idea why this happens? A search didn't yield any results. TIA
|
|
HtF Visconti
Registered User
Join date: 21 Jul 2006
Posts: 123
|
01-09-2007 07:10
Hard to tell without seeing the actual script but if you link very simple poseballs you usually have a section where you check if AvatarOnSitTarget returns a null key or not. Usually the assumption is that if it is a null key the avatar has de-linked and if it is non-zero that the avatar has linked. Works swell with a single poseball - doesn't work when linking two of that kind because the link change will be sent to both poseballs but only one of them will have a nonzero return and the other will get a null key - usually the null key script then tries to unsit or stop an animation or release controls - too bad, really, that it never asked for them  So one has to usually pimp the simple poseball a bit by, say, using a seated variable and only execute the unsitting code if seated has been set to true - i.e. there has really been an avatar on *that* specific sit target. If seated is false and you get a null key - well then an avatar probably sat on one of th eother poseballs. You can also use the number of linked items to check how many avatars are sitting, etc. but without the actual code to see I cannot give more tips. Maybe post your code?
|