Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Taking Controls from two people

Gigs Taggart
The Invisible Hand
Join date: 12 Feb 2006
Posts: 406
04-11-2006 18:30
I'm having a problem with controls. The vehicle is a two seater, with two separate scripts in two separate seats (one driver, one gunner).

Each script takes controls from the person sitting in it.

The problem is the gunner's controls and the driver's controls are getting mixed up, the gunner is also driving, even though that's in a separate script that never got controls from him.

Does anyone know why this is?
Ayrn Wake
Registered User
Join date: 7 Jan 2006
Posts: 39
04-12-2006 04:16
I can only assume because the driver seat is the root prim or something?

Aaanyways, if it isn't that, run a detection test on the control input, so whilest it reads controls from both it only actually listens to the right one.
Kyrah Abattoir
cruelty delight
Join date: 4 Jun 2004
Posts: 2,786
04-12-2006 05:37
the control event return you the key of the controlled person , use it as a filter
_____________________

tired of XStreetSL? try those!
apez http://tinyurl.com/yfm9d5b
metalife http://tinyurl.com/yzm3yvw
metaverse exchange http://tinyurl.com/yzh7j4a
slapt http://tinyurl.com/yfqah9u