I can't tell you how grateful I am for your assistance! It is still not working - here is what I have so far. Does it look okay to you? Not sure where the problem lies. It is one prim, I even tried a script to make the sound play on touch to no avail.
vector sit_position = <0.0, 0.0, -0.1>;
// here an euler rot
vector sit_rotation = <0.0, 0.0, 0.0>;
default
{
state_entry()
{
llSitTarget(sit_position, llEuler2Rot(sit_rotation * DEG_TO_RAD));
}
changed(integer change)
{
if (change & CHANGED_LINK)
{
key sittingAvatar = llAvatarOnSitTarget();
// when there's no avatar sitting, stop running code here
if (sittingavatar == NULL_KEY) return;
string firstSoundInPrim = llGetInventoryName(INVENTORY_SOUND, 0);
llPlaySound("2e1d11a8-59fe-caa5-058c-6bb1b64f2d2a", 1.0);
}
}
}