Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
vehicle Vehicle  

Vehicle

Sit trigger for car

Category: vehicle
By : Ferd Frederix
Created: 2014-09-07 Edited: 2014-09-07
Worlds: Second Life

the Zip file

Download all files for Vehicle
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. sit.lsl
Get file # 2. vehicle.lsl

This script by Ferd Frederix may be used in any manner, modified, and republished.  Unless specified otherwise, my scripts are always free and open source.  Objects made with these scripts may be sold with no restrictions.  All I ask is that you point others to this location should they ask you about it and to not sell this script, unless it is for $0 L. Please help improve my work by reporting bugs and improvements.

1 default
2 {
4 {
5 llSitTarget(<0.45, 0.0, 0.25>, <0.00000, 0.08716, 0.00000, 0.99619>);
6 }
7
8 touch_start(integer total_number)
9 {
10 llSay(0, "Right click me and choose 'Sit Here' to sit down");
11 }
12 }
13

Vehicle

simple vehice

Category: vehicle
By : Ferd Frederix
Created: 2014-09-07 Edited: 2014-09-07
Worlds: Second Life


This script by Ferd Frederix may be used in any manner, modified, and republished.  Unless specified otherwise, my scripts are always free and open source.  Objects made with these scripts may be sold with no restrictions.  All I ask is that you point others to this location should they ask you about it and to not sell this script, unless it is for $0 L. Please help improve my work by reporting bugs and improvements.

1 // by Ben
2 // Some help from Casval and Dave
3 // Modified by Sarg Bjornson to work with the Mayan Jungle Slide
4
5 rotation rot;
6 key owner;
7
8
9
10
11 reset()
12 {
13 vector pos = llGetPos();
14 pos.z = pos.z + 2.0;
15 llMoveToTarget(pos, 0.3);
16 llRotLookAt(rot, 0.1, 1.0);
17 llSleep(1.0);
20 }
21
22
23 default
24 {
25
26
27
29 {
30
33
34 llSetSitText("Ride Sleigh");
35
36 llSitTarget(<0.4, 0.0, 0.25>, <0.00000, 0.08716, 0.00000, 0.99619>);
37 llSetCameraEyeOffset(<-4.0, 0.0, 3.00>);
38 llSetCameraAtOffset(<0.0, 0.0, 2.0>);
39
42
44
49
50 llSetVehicleFloatParam(VEHICLE_LINEAR_MOTOR_TIMESCALE, 1.0);
53 llSetVehicleFloatParam(VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE, 0.1);
54
57
60
64
69
70 llCollisionSound("", 0.0);
71 }
72
73 changed(integer change)
74 {
75 if(change & CHANGED_LINK)
76 {
77 key agent = llAvatarOnSitTarget();
78
79 if(agent)
80 {
82 llSetStatus(STATUS_PHANTOM, FALSE);
84 llMessageLinked(LINK_SET, 0, "on", "");
85 llSetTimerEvent(1.0);
86 //llTargetOmega(<0,0,0.2>,PI/4,1.0);
87 llSetText("",<1,0,0>,0);
88
89 }
90 else
91 {
92
94 //llTargetOmega(<0,0,0>,PI/4,1.0);
96 llMessageLinked(LINK_SET, 0, "off", "");
97 llSetTimerEvent(0.0);
99
100 }
101 }
102
103 }
104
106 {
107 if(perm)
108 {
110 }
111 }
112
113 control(key id, integer level, integer edge)
114 {
115 vector angular_motor;
116
117 if(level & CONTROL_FWD)
118 {
120
121 }
122 if(level & CONTROL_BACK)
123 {
124
126
127 }
128
130 {
131
132 angular_motor.z = -PI * 0.5;
133
134
135 }
137 {
138
139 angular_motor.z = PI * 0.5;
140
141
142 }
143 if(level & (CONTROL_DOWN))
144 {
145 llPlaySound("horn",1.0);
146 }
147 else if(level == FALSE)
148 {
149
150 }
152 }
153
154 timer()
155 {
156 vector pos = llGetPos();
157 if(( pos.z - llGround(ZERO_VECTOR) ) < 0.8)
158 {
159 rot = llGetRot();
160 }
161 }
162
163
164
165 }

Back to the Best Free Tools in Second Life and OpenSim.