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
Building Side_Numbering  

Side_Numbering

Side Numbering.lsl

Category: Building
By : Xylor Baysklef
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Side_Numbering
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. [49472 bytes] Numbers.jpg
Get file # 2. [20502 bytes] Sides.jpg
Get file # 3. Side_Numbering_1.lsl
1
2 ////////////////////////////////////////////
3 // Side Numbering Script
4 //
5 // Written by Xylor Baysklef
6 ////////////////////////////////////////////
7
8 /////////////// CONSTANTS ///////////////////
9 key NUMBERS_TEXTURE = "fc8df679-ca1b-3ec9-c4ce-b1c832b5b5ce";
10 ///////////// END CONSTANTS /////////////////
11
12 ///////////// GLOBAL VARIABLES ///////////////
13 /////////// END GLOBAL VARIABLES /////////////
14
15 ShowNumber(integer num, integer face) {
16 integer Row = num / 10;
17 integer Col = num % 10;
18 llOffsetTexture(-0.45 + 0.1 * Col, 0.45 - 0.1 * Row, face);
19 }
20
21 default {
22 state_entry() {
23 // Reset rotation, alpha, color and turn off animations.
26 llSetColor(<1, 1, 1>, ALL_SIDES);
27 llSetTextureAnim(FALSE, 0, 0, 0, 0, 0, 0);
28
29 // Show the numbers texture.
30 llSetTexture(NUMBERS_TEXTURE, ALL_SIDES);
31 llScaleTexture(0.1, 0.1, ALL_SIDES);
32
33 // Go through each side and show a number.
34 integer i;
35 for (i = 0; i < llGetNumberOfSides(); i++) {
36 ShowNumber(i, i);
37 }
38 }
39 }
40 // END //

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