Get Root Position

De DigiWiki.

Version du 11 mars 2012 à 04:35 par Djphil (discuter | contributions)
(diff) ← Version précédente | Voir la version courante (diff) | Version suivante → (diff)
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
donate
Google Ads