MongoosePeople. Places. Questionable inventions.

Changelog

All public mailing lists

copying sounds

2008-03-12 16:04 UTC · Daiverd (#2)

Added:

$sh:copy_sound

Notes:

syntax: $sh:copy_sound(sound waif, {option,value},{option,value})

returns a sound waif with a new handle that is an exact duplicate of the supplied sound waif except for the optional options you provide.

This makes copying an ambient sound easier.

me.temp = $sh:copy(here.sounds[1], {"volume",0.125})

here.sounds = {me.temp}

me.temp.location = here

don't forget to change the location, which of course can be done in the copying code

Back to Changelog