Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Get the length of a sound, or know when it's stopped?

Adam Ramona
Registered User
Join date: 5 Jan 2005
Posts: 56
01-08-2007 03:18
Can a script know the length (in secs) of a sound in the script's object's inventory? According to the wiki, llGetInventoryData only works for landmarks. I ask because I can't see any way of knowing when a sound has stopped, so knowing it's length would be the next best case. Am I missing something?

Adam
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
01-08-2007 03:52
The only way I know of is manually telling the script the length, either by encoding it into the sound name or some other similarly clunky method..