Files
LSL-Scripts/Opensim exploding wall and grenade/Opensim exploding wall and grenade/Instructions.txt
2015-08-09 16:54:31 -05:00

93 lines
3.9 KiB
Plaintext

Author: Steven Thompson, copyright 2015
DISCLAIMER:
INSTRUCTIONS:
Below is the Work Flow for constructing the Destructible Wall and Grenade:
There are a number of primitive objects that will need to be created in order to complete fulfill this Work Flow.
1. Brick
2. Destructible Wall
3. Deleter Button
4. Set Wall Alpha Button
5. Grenade
6. Grenade Launcher Button
I. Brick
1) Spawn a box-shaped primitive; this will be used as an individual brick of the destructible wall.
2) Set the dimensions of the primitive to x = 0.5, y = 0.24, and z = 0.25.
NOTE: These dimension values can be changed but they will also have to be changed in RezBricks.txt on line 23 where brickSize is specified.
3) Apply the following scripts to this object:
a. GetExploded.txt
b. PrimDeleter.txt
4) Name the primitive 'Brick'
5) OPTIONAL: Change the texture and color of the brick
a. Go to the Texture menu when editing the primitive
b. Find the drop-down that says 'Texture (diffuse)' and change it to 'Bumpiness (normal)'
c. Click 'Texture' and set it to 'None'
d. Click on the drop-down labeled 'Bumpiness' and select 'concrete'
6) Copy the primitive to your inventory
II. Destructible Wall:
1) Spawn a box-shaped primitive, which will act as your destructible wall.
a. Use ctrl-B to open 'Build' menu.
b. Click the box icon.
c. Move cursor over into environment and click where you want to place the primitive.
2) Set the dimensions of the primitive to those desired.
3) Name the primitive something meaningful; I named mine 'DestructibleWall'.
4) Apply the following scripts to this object:
a. RezBricks.txt
b. SetWallAlpha.txt
5) Place a copy of the 'Brick' primitive in the Destructible Wall's 'contents'
III. Deleter Button:
1) Spawn a box-shaped primitive, which will act as a Delete Button in your HUD.
2) Name the primitive something meaningful; I named mine 'DeleterButton'.
3) Apply the following script to this object:
a. DeletePrims_ButtonScript.txt
4) Take a copy of the Deleter Button primitive.
5) Apply it to your HUD:
a. Go into your inventory.
b. Right click the Deleter Button.
c. Click 'Attach to HUD' and place where desired.
d. Ensure that this button location does not intefere with other buttons.
IV. Set Wall Alpha Button:
1) Spawn a box-shaped primitive, which will act as a Button that changes the wall's alpha in your HUD.
2) Name the primitive something meaningful; I named mine 'SetWallAlphaButton'.
3) Apply the following script to this object:
a. SetWallAlpha_ButtonScript.txt
4) Take a copy of the Set Wall Alpha Button primitive.
5) Apply it to your HUD:
a. Go into your inventory.
b. Right click the Set Wall Alpha Button.
c. Click 'Attach to HUD' and place where desired.
d. Ensure that this button location does not intefere with other buttons.
V. Grenade:
1) Spawn a circle-shaped primitive; it will act as your grenade object
2) Edit the physical properties of the grenade:
a. Set the size of the Grenade primitive to be more appropriately sized: try x=0.063, y=0.063, z=0.063; adjust as needed
b. Go into 'Features' and set the following values:
i. Gravity = 1.0
ii. Friction = 0.60
iii. Density = 1000.0
iv. Bounciness = 0.50
3) Apply the following scripts:
a. GrenadeExploder.txt
4) Take a copy of this primitive.
VI. Grenade Launcher Button:
1) Spawn a box-shaped primitive, which will act as a Button that throws a grenade object.
2) Name the primitive something meaningful; I named mine 'GrenadeLauncher'.
3) Apply the following to this object:
a. GrenadeThrower.txt
b. Grenade primitive
4) Take a copy of the Grenade Launcher Button primitive.
5) Apply it to your HUD:
a. Go into your inventory.
b. Right click the Grenade Launcher Button.
c. Click 'Attach to HUD' and place where desired.
d. Ensure that this button location does not intefere with other buttons.
DIAGRAM:
For More details about how these primtives and scripts go together, refer to the image, DestructibleWall.jpeg.