|
Mod Faulkner
Registered User
Join date: 11 Oct 2005
Posts: 187
|
06-18-2006 14:26
I am scripting a car with a passanger as well as a driver. My problem is that because of the top, the 2nd AV can't see the passanger seat once the driver is in place and before the drive is in place whoever clicks first usually end up in the drivers seat. Other than taking off the top, is there a way to handle this problem?
|
|
Michael Martinez
Don't poke me!
Join date: 28 Jul 2004
Posts: 515
|
06-18-2006 14:45
Sounds like you might set a sit target on other prims besides just the driver seat and passenger seat.
As if you have only 2 prims that have set the llSitTarget, then anyone right click and sitting would take 1st spot, the 2nd would take 2nd spot, and anyone else would sit on the prim they right click to sit on (not controlled at all).
So if someone right clicks and they sit on the driver seat area, even though someone already there, there must be two prims in the driver set area which have had a llSitTarget or do have a llSitTarget set in the script.
To unset the llSitTarget, add to script, or put in a script with all zeros ( llSitTarget (ZERO_VECTOR, ZERO_ROTATION) )
_____________________
There are no significant bugs in our released software that any significant number of users want fixed. (Bill Gates)
|
|
Mod Faulkner
Registered User
Join date: 11 Oct 2005
Posts: 187
|
Unsure
06-19-2006 02:15
I have read through you suggestion a couple of times, but I am not at all sure I understand how to do what you are suggesting. Obviouly there are lots of prims in the car that a sit target could be placed in other than the twp prim for the driver and passanger seats. Are you saying that if I put a sit target in one of them but with the values zero out, cliking on it automatically sit in one of the two seats.?
|
|
Bitzer Balderdash
Dazed and Confused
Join date: 21 Dec 2005
Posts: 246
|
06-19-2006 06:10
What Michael is saying is that at some time during the build, you put a sit target into one of the prims other than the seats.
If the only sit targets were in the two seats, with the drivers seat as the root prim of the vehicle, then the first person sitting anywhere except the passenger seat on the vehicle would get the drivers seat, and the second person sitting anywhere would get the passenger seat.
Since this is not what is happening, then whatever prim they are sitting on must have had a sit target set at some point.
Removing the set sit target script is [/i]not enough[/i] to remove the sit target, you must put in a script that sets it to (ZERO_VECTOR, ZERO_ROTATION) in order to remove the target.
I hope that is a little clearer.
|