Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Its Getting stuck somewhere,, HELP

Lexi Foley
Registered User
Join date: 1 Mar 2006
Posts: 43
08-13-2006 18:58
I made a prim that is set on "Sit on object" when touched,,, in main menu
What sepose when i touch it is
Let someone Sit on the object and give a PREMISION MENU!
It gives me the message "ACTIVATE"
but not the PREMISION MENU followed by it!!!!
Am i Doing something wrong or is it a bug??
below is a short example verrsion of the script.


default
{
state_entry()
{
llSitTarget(<0,0,0.1>,ZERO_ROTATION);
}
on_rez(integer start_param)
{
active = FALSE;
llSetScriptState("Example", FALSE);
}
changed(integer change)
{
if(change==CHANGED_LINK)
{
if(active==TRUE)
{
llSay(0,"Deactivate";);
llReleaseControls();
active = FALSE;
llSetScriptState("Example", FALSE);
}
else
{
llSay(0,"ACTIVATE";); //NO FURTHER REACTION MENU IS NOT COMING!!!
llRequestPermissions(llAvatarOnSitTarget(), PERMISSION_TAKE_CONTROLS);
}
}
}
run_time_permissions(integer p)
{
if (p)
{
llTakeControls(CONTROL_FWD|CONTROL_BACK,TRUE,FALSE);
active = TRUE
llSetScriptState("Example", TRUE);
}
else
{
llReleaseControls();
active = FALSE;
llSetScriptState("Example", FALSE);
}
}
control(key id, integer down, integer change)
{
EXAMPLE,, I NEVER GET HERE BECOUSE OF FAILING PREMISION MENU!!!!
}
}

I dont know what im doing wrong,, if im doing it wrong,,, tell me pls, otherwise also
i think i have to report a bug then,,, pls pls somebody help me!!!

Lexi Foley
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
08-13-2006 19:06
From: Lexi Foley
I made a prim that is set on "Sit on object" when touched,,, in main menu
What sepose when i touch it is
Let someone Sit on the object and give a PREMISION MENU!
It gives me the message "ACTIVATE"
but not the PREMISION MENU followed by it!!!!
Am i Doing something wrong or is it a bug??

It's regular behaviour, if i understand it correctly. If you have AV "attach" themselves to object by either sitting on it or wearing it as attachment, if a script located in root prim requests permissions to animate or take over controls, the permission is granted automatically without any requester.
Lexi Foley
Registered User
Join date: 1 Mar 2006
Posts: 43
Thx That explains
08-13-2006 19:32
Aha that explains why i dont get the menu!! thx,, i though i went crazy!!!!!