Jump to content

Questions about asking for Permission - PERMISSION_TAKE_CONTROLS


Xander Lopez
 Share

You are about to reply to a thread that has been inactive for 1658 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I am trying to see if the following scripts need to be combined together or if i can just keep them in a separate script file.

both script contains request permissions that takes user control.

1st script contains:

  • llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS);
  • run_time_permissions(integer permissions) llTakeControls(CONTROL_FWD|CONTROL_BACK|CONTROL_LEFT|CONTROL_RIGHT|CONTROL_UP|CONTROL_DOWN, 1, 1);

2nd script contains:

  • llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS| PERMISSION_TRACK_CAMERA);
  • run_time_permissions(integer permissions) llTakeControls(CONTROL_ML_LBUTTON, 1, 1);

Any info will be appreciated.

Link to comment
Share on other sites

Hiya,

You can combine the scripts if you want to, but you need to combine the permission requests into a single request,

it would look something like this in a combined script:

llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS|PERMISSION_TRACK_CAMERA);
run_time_permissions(integer permissions) llTakeControls(CONTROL_ML_LBUTTON|CONTROL_FWD|CONTROL_BACK|CONTROL_LEFT|CONTROL_RIGHT|CONTROL_UP|CONTROL_DOWN, 1, 1);

have fun..:)

Dargs

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1658 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...