So I have an object which is an attachment and functions as a HUD, and can enter a state where @detach=n is called. When I use the 'safeword' on my relay I want to be able to detach, but it seems to make no change. The rlv detach restriction is still in place. Can someon explain what I am missing please? In the following code, the behaviour I am looking for is: from state rlvYes, safeword to allow detach, detach the object, reattach it and trigger on_rez, which takes it back to default. So the wearer can cheat out of the timer if they want to. default
{
state_entry()
{
llSetColor(<1.0,0,0>, ALL_SIDES);
llOwnerSay("in entry default");
llOwnerSay("@detach=y");
}
touch_end(integer total_number)
{
state rlvYes;
}
}
state rlvYes
{
state_entry()
{
llSetColor(<0,1.0,0>, ALL_SIDES);
llOwnerSay("in entry rlvYes");
llOwnerSay("@detach=n");
llSetTimerEvent(30);
}
timer()
{
llSetTimerEvent(0);
state rlvNo;
}
on_rez(integer start_param)
{
state default;
}
}
state rlvNo
{
state_entry()
{
llSetColor(<0,0,1.0>, ALL_SIDES);
llOwnerSay("in entry rlvNo");
llOwnerSay("@detach=y");
}
touch_end(integer total_number)
{
state default;
}
}