Difference between revisions of "Virtual Tracking Guide"

From CRIPTWiki
Jump to: navigation, search
(Created page with 'realXtend can run LSL scrpit no problem. Hence, we will be able to use exist LSL command embedding in python to run the command. The key command that is used: Ask for permissi...')
 
Line 8: Line 8:
  
 
  integer perm = llGetPermissions();
 
  integer perm = llGetPermissions();
 
+
  if (perm & PERMISSION_TRACK_CAMERA) // using & is important! perm is a bitmask!
  if (perm & PERMISSION_DEBIT) // using & is important! perm is a bitmask!
+
 
  {
 
  {
    // debit code goes here
+
  //Get Camera Position 3D Coordinate
 +
  //Returns a VECTOR
 +
  llGetCameraPos();
 +
 
 +
  //Get Camera Rotation
 +
  //Returns a ROTATION
 +
  llGetCameraRot();
 +
 
 +
 
 
  }
 
  }
 +
 
Source: http://lslwiki.net/lslwiki/wakka.php?wakka=ScriptPermissions
 
Source: http://lslwiki.net/lslwiki/wakka.php?wakka=ScriptPermissions

Revision as of 03:16, 7 June 2009

realXtend can run LSL scrpit no problem.

Hence, we will be able to use exist LSL command embedding in python to run the command.

The key command that is used:

Ask for permission from user to track them.

integer perm = llGetPermissions();
if (perm & PERMISSION_TRACK_CAMERA) // using & is important! perm is a bitmask!
{
 //Get Camera Position 3D Coordinate
 //Returns a VECTOR
 llGetCameraPos();
 //Get Camera Rotation
 //Returns a ROTATION
 llGetCameraRot();


}

Source: http://lslwiki.net/lslwiki/wakka.php?wakka=ScriptPermissions