Virtual Tracking Guide

From CRIPTWiki
Revision as of 03:16, 7 June 2009 by Admin (Talk | contribs)

Jump to: navigation, search

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