Hi,
I am working on a boat that has 4 pose balls...one for the driver and three passengers.
The boat script is in the object's root prim and the root prim is not a pose ball.
The problem is that whenever someone sits on one of the pose balls, when that person is the first person sitting, the boat script attempts to get permission to take controls from that person. The problem is that the sit location is not the same as the prim that contains the boat script, so I get an error.
How can I know which prim a user sits on?
To clarify...here is the setup..
* root prim - just a prim..no scripts
* pose ball 1 - contains the boat script that includes a sit target
* pose ball 2 - just a pose ball .. has an animation and a sit target
* pose ball 3...n - - just a pose ball .. has an animation and a sit target
The scenario:
There is nobody on the boat, someone sits on pose ball 2. The boat script in pose ball 1 gets the changed event and tries go get permission to take controls but fails since the user is not sitting on pose ball 1.
If the user gets up and sits on pose ball 1, the script gets permission to take controls and the boat operates correctly.
How can I figure out where the user is sitting so that the boat script does not request permissions?
Thanks -(a very frustrated) 2fast