Home |
Add a script
|
||
|---|---|---|---|
| Category: | Contributor: | Description | |
| Spells | Anonymous | Spell Settings.lsl | |
Script for a spell. its stays in one place when rezzed, then dies when it touches
Spell Settings.lsl
Download this script - Please use this link to get this script. If you see all the code on one long line, please use Wordpad or another editor, such as LSLEdit.exe. The .LSL file you will download is an ordinary text file.
1 // CATEGORY:Spells 2 // DESCRIPTION:Script for a spell. its stays in one place when rezzed, then dies when it touches 3 // ARCHIVED BY:Ferd Frederix 4 5 default 6 { 7 state_entry() 8 { 9 llSetBuoyancy(1); // so gravity doesn't pull our physical spells down 10 } 11 12 //Event if you hit a person or object 13 collision_start(integer i){ 14 15 llDie(); // Delete object 16 } 17 18 //Event if you hit the ground 19 land_collision_start(vector pos) { 20 21 llDie(); //Delete object 22 } 23 24 //Event that happens when the spell is rezzed from the wand 26 27 } 28 } 29 // END //