Have used somt of the ideas suggested but am having trouble getting the scripts to work. If anyone could let me know what i am doing wrong that would be great.
Script on switch:
default
{
state_entry()
{
llSay(0, "Hello, Avatar!");
}
touch_start(integer total_number)
{
llRegionSayTo("10e457cf-c631-cc69-2cb8-cd384541aca4",-524,"Rotate");
}
}
Script on door:
float rotateBy = 0.8;
default
{
state_entry()
{
llListen(-524,"Switch","fac317ac-dc0f-c394-ad48-1b9a0644e9c4","rotate");
}
listen(integer channel, string name, key id, string message)
{
if (llToLower(message) == "rotate")
{
llSay(0, "Door opened");
llSetLocalRot(llEuler2Rot(<0,0,rotateBy*PI_BY_TWO>)*llGetLocalRot());
}
}
}