default
{
touch_start(integer total_number)
{
key owner = llGetOwner();
llRequestPermissions(owner, PERMISSION_TAKE_CONTROLS); // ask for permission
if (llGetAgentInfo(owner) & AGENT_SITTING)
{
// if-yes condition
llSay(0,"touched and seated"
; }
else
{
llSay(0,"the owner is not sitting."
;}
}
}
1) Obviously, the // ask for permission line should put in the // if-yes condition place. That's basically what i want. However, when i put it there, only "touched and seated" showed up when the owner is seated on the prim, but it hasn't got a screen pop up to ask for permission.
Then i tried to put the // as for permission line on the place where it shown above, the permission pop up screen shows up. Why does the permission screen is not showing up but while the "touched and seated" showed up?
2) Also when the owner is seated on the prim, no matter where the two places i put the // ask for permission line, the permission screen just NOT shows up at all. Is this // as for permission line requires some condition to take effect? Is it not like the llSay(); function that has effect whenever the script flows to?
Appreicate for any help.
