Get Root Position

De DigiWiki.

vector GetRootPos() {
    // If this object is not linked, or if it is the
    // root object, just return llGetPos()
    integer LinkNum = llGetLinkNumber();
 
    if (LinkNum <= 1)
        return llGetPos();
 
    // Otherwise take local position into account.
    return llGetPos() - llGetLocalPos();
}
Outils personnels
  • Cette page a été consultée 532 fois.
donate
Google Ads