LlGetParcelMaxPrims/fr - Second Life Wiki

LlGetParcelMaxPrims/fr

From Second Life Wiki

Jump to: navigation, search

Contents

Description

Fonction: integer llGetParcelMaxPrims( vector pos, integer sim_entière );

Renvoie un integer correspondant au nombre max de prims autorisées sur la parcelle à la position pos.

• vector pos dans le référentiel régional
• integer sim_entière booléen, si FALSE : pour la parcelle, sinon pour la sim.

Exemples

// Code initialement écrit par by Anthony Reisman (aka Anthony Bundy).
// Libre d’utilisation et de distribution
default
{
    state_entry()
    {
    }
 
    touch_start(integer total_number)
    {
        llSay(0, "Il y a  " + (string)llGetParcelPrimCount(llGetPos(), PARCEL_COUNT_TOTAL, FALSE) +" sur "
             +(string)llGetParcelMaxPrims(llGetPos(), FALSE) + " prims possibles sur cette parcelle");
    }
}
 
 

Voir également

Fonctions

•  llGetParcelPrimCount Renvoie des informations sur le nombre de prims