Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Fowarding avatar controls

Django Yifu
Beat Island Gaffer
Join date: 7 May 2007
Posts: 189
07-10-2007 11:20
Is there a way to make a prim foward avatar controls to another prim. I want to make a radio controlled boat that is controlled from a static controller that avatars can sit at. When the avatar sits the controller takes avatar controls. How do I transmit them to the boat.

Or maybe the controller just needs to tell the boat to take the controls. I don't know.

Thanks ^_^
Milambus Oh
Registered User
Join date: 6 Apr 2007
Posts: 224
07-10-2007 12:35
Have the Remote handle the user controls, and just send a message to the boat via ny of the standard communication streams (llSay, lEmail, llRegionSay, etc)
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
07-10-2007 13:12
I have a mini RC Motorcycle that I got last Christmas through a group I belonged to at the time. After rezzing it you simply click it and it takes controls. Then you can use the arrow keys to drive it around. You can also fix your camera on it so you always keep it in view. Pretty fun :)
_____________________
Fambaa Kidd
Registered User
Join date: 27 May 2007
Posts: 5
07-11-2007 08:48
Im not a proffessional but I think the boat has to take controls.

The requesting and permission things have to be in the script which make it move.

An easy way to do that would be this:

Avatar sits in controller and controller shouts to the boat that the owner sits, ifa anyone else should get permissions to move the boat while sitting too, youll have to pass name or key I think.

The boat has to know whom to ask for permissions. After the controller shouted to the boat catch that shoutmessage via listen and let it trigger the takecontrols.

Thats the way I would do.

Another possible way, but alot slower and more lag causing would be to take controls with the controller, catch the input and send every value of moving and values via shout to the boat. But this way your boat would not work with a vehiclescript.

I have a very similar script you want for a flyscript, I take controls with the push on a button on my HUD. Works in the exact way I described first.

IM me in game ifyou want that script, its open source and I modified it for my use with some help from Ichabod Gaussman :D