Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Breaking Glass Script

Nerolus Mosienko
Registered User
Join date: 3 Aug 2006
Posts: 145
01-19-2008 19:32
So I've got alot of windows in an abandoned warehouse. I want to script the window prims (they are one prim each) so when an avatar (or possibly, even an object), collides with it, it breaks. I was thinking the following:

I could make the texture of the one prim window change to a broken looking texture. The object would make a glass breaking sound, and "spawn" a certain number of physical objects to pose a glass shards (set on temporary). I would like the texture to automatically (or on click) to change back to its original window texture, after it had been "broken". Alternatively, I could make the windows texture contain both the Normal and Broken versions, so the objects texture alignment would just have to change, instead of actually changing the texture itself. That is, if this option would be easier.

If anyone can help me out, point me to some kind of texture source that I could mod, I would be greatly appreciated. If anyone could take the time to help me out, or even make it for me, I would even be willing to pay. But normally, I like to learn something in the process. I've also post this in Scripting Tips. Thanks for any future help! I'll be checking back :)

Nerolus Mosienko
[email]nerolus@gmail.com[/email]
Abba Thiebaud
PerPetUal NoOb
Join date: 20 Aug 2006
Posts: 563
01-19-2008 23:03
Contact Mosquito Batts (or is it Batz?) Gaw, too used to just the friends list in world.

Anyway, he's part of the SpellFire group and he just recently did this for a wall. It breaks up into pieces when collided with, then after a set time, fixes itself. It's just a matter of texture change to make the wall a window.

A
_____________________
http://www.ponystars.com/abbathiebaud Pony Up.
Nerolus Mosienko
Registered User
Join date: 3 Aug 2006
Posts: 145
01-19-2008 23:28
Awesome! Will do. Thanks a ton!