We are working diligently to bring you better content Join V.I.P Today. and become part of the Team!
After you Pay for V.I.P click the Email Us link to email your username
and receipt for Activation
Membership Options
Thread Rating:
  • 7 Vote(s) - 2.43 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Car Script with kill function when the driver stands up
Hello Guest!! You need to Register or to view the content
i my self use temp rezzing for my grid this seems to not work to well if you drive it seems to randomly disappear sometime's
so if you find a way to timer rez please keep me in the loop Smile
Here is how I have handled it......In a vehicle script, you will have a section that tells it what to do when a driver sits....sets, the controls, animations......etc  

There will also be a section that tells it what to do when the driver stands up, it usually resets the boat to the resting state ???  waiting for the next driver to sit.

You add the command


Here is the example from the boat script that I use:

else { // driver got off
                llSetStatus(STATUS_PHYSICS, FALSE); 
                gRun = 0; // turn off running
                llStopAnimation( animation );
                llPushObject(gAgent, <3,3,21>, ZERO_VECTOR, FALSE);
                llSetCameraParams([CAMERA_ACTIVE, 0]);
                llMessageLinked(LINK_SET, 0, "aboard", NULL_KEY);     // driver got off

When the driver stands up, the boat is killed..the nice thing is it is simply gone.  It does not go to your lost and found.  It simply poofs.  I am working on trying to set up a timer so that you have 10 or 15 seconds to sit back on the boat so if the driver inadvertanly stands up, you have a little time to sit back down before you go for a swim.  

I suppose you could simplify that whole section by just using

else { //driver got off

That simplified section with just llDie() seems to do the trick.  

I just made a drop in root Die on a timer.
I would love to see that. Would you mind posting it please?

Possibly Related Threads...
Thread Author Replies Views Last Post
  DT Car Script v2.1 johnkarun 9 6,542 05-22-2018, 04:07 PM
Last Post: miyazaki
  Train Script (path moving script) johnkarun 0 2,167 07-26-2013, 10:31 AM
Last Post: johnkarun
  Flight Script EEv3 (VICE 1.2.0) Femme 0 2,605 04-21-2013, 08:45 PM
Last Post: Femme
  KU - Smooth Motorbike Script Femme 0 2,221 04-21-2013, 03:56 AM
Last Post: Femme

Forum Jump:

Users browsing this thread: 1 Guest(s)

About Unrestricted Second Life

GoonSquad CopyBot Forum is a place where you can get items for Second Life and other vitual worlds for free. With our CopyBot viewers you can export and import any content from these viryual worlds and modify them in 3D software such as Blender, 3D studio Macx etc...

              Quick Links

              User Links