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
Kites L95kitestring  

L95kitestring

L9.05-kite-string.lsl

Category: Kites
By : Dana Moore
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for L95kitestring
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. L95kitestring_1.lsl
1
2 // Copyright (c) 2008, Scripting Your World
3 // All rights reserved.
4 //
5 // Scripting Your World
6 // By Dana Moore, Michael Thome, and Dr. Karen Zita Haigh
7 // http://syw.fabulo.us
8 // http://www.amazon.com/Scripting-Your-World-Official-Second/dp/0470339837/
9 //
10 // You are permitted to use, share, and adapt this code under the
11 // terms of the Creative Commons Public License described in full
12 // at http://creativecommons.org/licenses/by/3.0/legalcode.
13 // That means you must keep the credits, do nothing to damage our
14 // reputation, and do not suggest that we endorse you or your work.
15
16 // Listing 9.5: The Kite String
17 string SPOOL_REZZED = "SpoolRezzed";
18
19 makeString(key targetID) {
20 // Based on Listing B.1. Unchanged values removed to save trees
21 integer FollowSrcMask = TRUE; // move with emitter
22 integer FollowVelocityMask = TRUE; // turn to face
23 integer WindMask = TRUE; // let wind blow string
24 integer TargetPosMask = TRUE; // head to the spool
25 integer ScaleMask = TRUE; // grow
28 ( WindMask * PSYS_PART_WIND_MASK ) |
29 ( FollowSrcMask * PSYS_PART_FOLLOW_SRC_MASK ) |
30 ( FollowVelocityMask * PSYS_PART_FOLLOW_VELOCITY_MASK ) |
31 ( ScaleMask * PSYS_PART_INTERP_SCALE_MASK ) |
32 ( TargetPosMask * PSYS_PART_TARGET_POS_MASK ) ),
33 //Appearance
34 PSYS_PART_START_SCALE, < 0.04, 0.2, 0.0>, // <1,1,0>
35 PSYS_PART_END_SCALE, < 0.04, 1.00, 0.0>, // <1,1,0>
36 PSYS_PART_END_ALPHA, 1.0, // 0.0
37 //Flow
38 PSYS_PART_MAX_AGE, 5.00, // 10.0
39 PSYS_SRC_BURST_RATE, 0.05, // 0.10
41 //Placement
43 //Movement
44 PSYS_SRC_BURST_SPEED_MIN, 1.00, // 1.0
45 PSYS_SRC_BURST_SPEED_MAX, 1.00, // 10.0
46 PSYS_SRC_TARGET_KEY, targetID // llGetKey()
47 ]);
48 }
49 default
50 {
51 state_entry() {
53 }
54 on_rez(integer param) {
56 }
57 link_message(integer sender,integer num, string str, key id) {
58 if(str==SPOOL_REZZED) {
59 makeString( id );
60 } else {
62 }
63 }
64 }
65 // END //

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