string anim_name; // added this animation as a global
/////////// USER SETTINGS ////////////////////
string floattext = "Sit Here";
string sittext = "Pose!";
vector textcolor = <1,1,1>;
vector sittarget = <0,0,1>;
vector sitangle = <0.0,0.0,0.0>;
integer listen_handle;
//////////// BEGIN SCRIPT ////////////////////
rotation sitrotation;
default
{
on_rez( integer sparam )
{
llResetScript();
}
state_entry()
{
anim_name = llGetInventoryName(INVENTORY_ANIMATION,0); // defined the variable anim_name .. in this case the f