|
Ee Maculate
Owner of Fourmile Castle
Join date: 11 Jan 2007
Posts: 919
|
11-22-2008 11:36
I have a script which at some point needs to stop any current media on the parcel playing. I'm using llParcelMediaCommandList to wipe out the source of the media to do this, although any llParcelMediaCommandList option will have the same problem... which is that it delays the script by 2 seconds (see wiki). The question is, is there a way to achieve this without using llParcelMediaCommandList and so without causing the 2 second delay? (it's not a textures issue... if you have a movie started and then change the texture that's set to play the media, the movie still seems to be playing... you can hear it. If there's a way to stop THAT then I'm done  ) Thanks for any help! EDIT: Just had a thought that I could send a message to ANOTHER script to stop it which should work (?) but would prefer a cleaner method.
|
|
Kaluura Boa
Polygon Project
Join date: 27 Mar 2007
Posts: 194
|
11-22-2008 15:16
Sending a link message to a sub-script to do the work is the common solution to overcome any delay. And it's neither clean nor dirty, there is just no other solution.
But there is no magic in this trick. The delay still exists. If you need to use an instruction with a fixed delay at a fast pace or at random moments that may be very close in time, you must have several sub-scripts and use them the one after the other.
|
|
Ee Maculate
Owner of Fourmile Castle
Join date: 11 Jan 2007
Posts: 919
|
11-23-2008 01:22
From: Kaluura Boa Sending a link message to a sub-script to do the work is the common solution to overcome any delay. And it's neither clean nor dirty, there is just no other solution. But there is no magic in this trick. The delay still exists. If you need to use an instruction with a fixed delay at a fast pace or at random moments that may be very close in time, you must have several sub-scripts and use them the one after the other. Thanks Kaluura... that was something I noticed when I started playing around with sending messages to another script... it was easy to still cause a problem if I pushed it too much! It's unfortunate that you cannot assume customers will use your product the way it was intended 
|
|
Cappy Frantisek
Open Source is the Devil!
Join date: 27 Oct 2006
Posts: 400
|
11-23-2008 07:34
From: Ee Maculate It's unfortunate that you cannot assume customers will use your product the way it was intended  Yep, that's the fun of creation. You have to think of all the ways they can frag it up and try to stop that from happening. Few, if any, can follow directions! 
|