Push All Scripts
This commit is contained in:
@@ -0,0 +1,107 @@
|
||||
// :CATEGORY:Prim Calculator
|
||||
// :NAME:Prim_counterscanner
|
||||
// :AUTHOR:Rolig Loon
|
||||
// :CREATED:2012-08-10 15:09:17.267
|
||||
// :EDITED:2013-09-18 15:39:00
|
||||
// :ID:652
|
||||
// :NUM:888
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Copyright © 2009 Linden Research, Inc. Licensed under Creative Commons Attribution-Share Alike 3.0, from the Wiki at http://community.secondlife.com/t5/LSL-Library/Sim-Prim-Count/td-p/1603611
|
||||
// :CODE:
|
||||
//Sim Prim Scanner -- Rolig Loon -- July 2012
|
||||
|
||||
|
||||
|
||||
// I find that a 0.5m white sphere makes a nice container for this scanner script,
|
||||
|
||||
// but anything will do. It's just that the particle glow looks nice on that
|
||||
|
||||
// sphere. Your choice.
|
||||
|
||||
|
||||
|
||||
list gPrclID; // List of unique parcel UUIDs
|
||||
|
||||
integer gTotPrims; // Total prims detected
|
||||
|
||||
float gX; // X coordinate of curren scan target
|
||||
|
||||
float gY; // Y coordinate of current scan target
|
||||
|
||||
string gObjName; // This scanner's name
|
||||
|
||||
integer gNUM; // Sequence number of unique parcels scans
|
||||
|
||||
|
||||
|
||||
default
|
||||
|
||||
{
|
||||
|
||||
state_entry()
|
||||
|
||||
{
|
||||
|
||||
llSetColor(<1.0,1.0,1.0>,ALL_SIDES);
|
||||
|
||||
gPrclID = [];
|
||||
|
||||
gTotPrims = 0;
|
||||
|
||||
// Start scan in the SW corner of the sim
|
||||
|
||||
gX = 4.0;
|
||||
|
||||
gY = 4.0;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
on_rez(integer start)
|
||||
|
||||
{
|
||||
|
||||
llSetPos(llGetPos() + <0.0,0.0,0.5>);
|
||||
|
||||
llSetText("Touch to start scan",<1.0,1.0,0.0>,1.0);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
touch_start(integer total_number)
|
||||
|
||||
{
|
||||
|
||||
llSetText("Scanning ....",<1.0,1.0,0.0>,1.0);
|
||||
|
||||
// Cheesy visiual effects ........
|
||||
|
||||
llSetColor(<1.0,1.0,0.0>,ALL_SIDES);
|
||||
|
||||
llParticleSystem([
|
||||
|
||||
PSYS_SRC_TEXTURE, llGetInventoryName(INVENTORY_TEXTURE, 0),
|
||||
|
||||
PSYS_PART_START_SCALE, <0.02, 0.02, FALSE>, PSYS_PART_END_SCALE, <3.0, 3.0, FALSE>,
|
||||
|
||||
PSYS_PART_START_COLOR, <1.00,1.00,0.00>, PSYS_PART_END_COLOR, <1.00,1.00,0.00>,
|
||||
|
||||
PSYS_PART_START_ALPHA, (float) .5, PSYS_PART_END_ALPHA, (float) 0.0,
|
||||
|
||||
PSYS_SRC_BURST_PART_COUNT, (integer) 1,
|
||||
|
||||
PSYS_SRC_BURST_RATE, (float) 0.05,
|
||||
|
||||
PSYS_PART_MAX_AGE, (float) 0.75,
|
||||
|
||||
PSYS_SRC_PATTERN, (integer) 1,
|
||||
|
||||
PSYS_PART_FLAGS, (integer) ( 0
|
||||
|
||||
| PSYS_PART_INTERP_COLOR_MASK
|
||||
|
||||
| PSYS_PART_INTERP_SCALE_MASK
|
||||
@@ -0,0 +1,7 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_timelastmodified:TR|08 Sep 2013 03:49:05 -0000
|
||||
vti_extenderversion:SR|12.0.0.6211
|
||||
vti_backlinkinfo:VX|
|
||||
vti_author:SR|alien\\fred
|
||||
vti_modifiedby:SR|alien\\fred
|
||||
vti_timecreated:TR|18 Sep 2013 20:39:00 -0000
|
||||
@@ -0,0 +1,6 @@
|
||||
<Project name="Prim_counterscanner" guid="D8D028D5-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D8D029C0-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Prim_counterscanner_1.lsl" guid="D8D04D58-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
@@ -0,0 +1,6 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_timelastmodified:TR|17 Aug 2013 23:32:40 -0000
|
||||
vti_extenderversion:SR|12.0.0.0
|
||||
vti_cacheddtm:TX|17 Aug 2013 23:32:40 -0000
|
||||
vti_filesize:IR|277
|
||||
vti_backlinkinfo:VX|
|
||||
Reference in New Issue
Block a user