Thanks in advance for your assistance.
S
rotation xyz;
vector xyz_angles;
vector angles_in_radians;
default
{
link_message(integer sender_num, integer num, string str, key id)
{
if (str == "flap"

{
xyz_angles = <0,45.0,0>; // Angles as in build menu
angles_in_radians = xyz_angles*DEG_TO_RAD; // Change to Radians
xyz = llEuler2Rot(angles_in_radians); // Change to a Rotation
llSetPrimitiveParams([PRIM_POSITION,llGetLocalPos() + <0.05,0,-0.117>,PRIM_ROTATION,llGetLocalRot()*xyz]);
}
else if (str == "unflap"

{
xyz_angles = <0,-45.0,0>; // Angles as in build menu
angles_in_radians = xyz_angles*DEG_TO_RAD; // Change to Radians
xyz = llEuler2Rot(angles_in_radians); // Change to a Rotation
llSetPrimitiveParams([PRIM_POSITION,llGetLocalPos() + <-0.05,0,0.117>,PRIM_ROTATION,llGetLocalRot()*xyz]);
}
}
}