Projects » Keyframe motion car for trains/lifts/rollercoasters etc

Add this to an object, reset scripts, and then click to start adding points (ADD point). At the end of the route , select save card. Then select RIDE to test it.

You can modify the ride as follows:

in the notecard "RIDE" , the third column between the "|" is the speed with which the car will reach that point

the fourth column is the number of seconds to stop at that point (useful e.g. for creating bus stops). If this is zero the car will not stop at that point

Added by: OpenSimWorld
Last Update: 10 months ago
Project Category: Utilities

Code

File name Added By Last Updated Actions
train.lsl OpenSimWorld 10 months ago View


Comments

Jimmy Olsen 10 months ago
If u want to make it on loop after its touched, just replace "KFM_FORWARD" for "KFM_LOOP".
like(0)
Tainted Angel 2 months ago
Hi! How can I recall a vehicle with a script? I made a ski lift but when the ski car is at the top... I need a button to recall it when someone is at the bottom or how to get it to pause for like 60 seconds in between stops..
like(0)
Jimmy Olsen 2 months ago
This script has no recall function. It d interesting though. About pause its the last value after the slash (/).. by default, on notecard, its all set to 0 (zero). values are in seconds.
like(0)
Tainted Angel 2 months ago
It worked!!! Thank you!
like(0)
Spax Orion 11 months ago
Video TUTORIAL on using this script here: https://youtu.be/5kQp-cO58YI
like(1)
shawnkmaloney OSWRS 11 months ago
Very good tutorial for THIS forever noob. :) How good will be determined when I get around to giving it a go, building something with it that is.
like(0)
Spax Orion 11 months ago
Experimentation is key. A standard sized coaster of realistic dimensions will usually take me about 12 (or more) hours to set the waypoints using colored prims; then I must move the car (position + rotation) to each of those prims along the track and 'add point'. I do them in sections... I always say "It takes a lot of love and patience for the artist to get that beautiful ship inside the bottle". If you have the patience, you will go far.
like(1)
Jimmy Olsen 11 months ago
Hi spax. i was at ur sim Zion.. nice smooth movement for ur roller coaster. wow.. amazing.
like(0)