Saturday, October 20, 2018

Sensor speak script in OSSL and uploading sound in Audacity

Below is a sensor speak script. It senses an avatar nearby and plays a sound. I am also including a play sound when touched script below this one. The video shows how to record a sound in Audacity and upload it into firestorm.


// Sensor speak script

default
{
    state_entry()
    {
        llSensorRemove();
        llSensorRepeat("",NULL_KEY,AGENT,5,PI/2,3.0);
    }

    sensor(integer num)
    {
      llSensorRemove(); 
      llPlaySound("welcomemvm",1.0);
      llSetTimerEvent(30); 
}
}
// end of script here

//Script for play sound on touch
default
{
        touch_start(integer total_number)
    {
        llSetObjectName(llDetectedName(0));
        llPlaySound ("phone_ringing",10.0);
    }
}
// end of script here

No comments:

Post a Comment