Miroslaw Bukowski
Registered User
Join date: 12 Dec 2003
Posts: 46
|
08-10-2005 22:21
Oki... since I really suck at scripting.... I hope that maybe somebody in here can help me. I am trying to add a sound effect to a fence I made on a current build I am working on. But when I use this script it makes the prim phantom. Any idea how to fix this? string Sound = "fenceslam";
default { state_entry() { llVolumeDetect(TRUE); llPreloadSound(Sound); }
collision_end(integer total_number) { llPlaySound(Sound, 1.0); }
}
_____________________
01001101011010010111001001101111011100110110110001100001011101110010000001000010011101010110101101101111011101110111001101101011011010010010000001101111011101110110111001011010001000000110101000110000001100000010000100100001
|
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
|
08-10-2005 22:50
Easily. 1) VolumeDetect is not what you want here. That tells the prim to take on a special kind of phantom that still handles collisions. 2) You can use llCollisionSound instead. 3) When you use collision events, try using collision_start instead.
_____________________
---
|