LlGetAttached/fr: Difference between revisions
Jump to navigation
Jump to search
Void Singer (talk | contribs) m formatted example |
m Big proofreading |
||
| Line 14: | Line 14: | ||
attach(key id) | attach(key id) | ||
{ | { | ||
if(id)//l'objet est attaché | if (id)//l'objet est attaché | ||
{ | { | ||
if(llGetAttached() != ATTACH_LHAND) | if (llGetAttached() != ATTACH_LHAND) | ||
{ | { | ||
llOwnerSay(" | llOwnerSay("Attachez-moi à la main gauche SVP"); | ||
llRequestPermissions(id, PERMISSION_ATTACH); | llRequestPermissions(id, PERMISSION_ATTACH); | ||
} | } | ||
} | } | ||
} | } | ||
run_time_permissions(integer a) | run_time_permissions(integer a) | ||
{ | { | ||
if(a & PERMISSION_ATTACH) | if (a & PERMISSION_ATTACH) | ||
llDetachFromAvatar(); | llDetachFromAvatar(); | ||
} | } | ||
Revision as of 09:59, 13 June 2008
| LSL Portail Francophone | LSL Portail Anglophone | Fonctions | Évènements | Types | Operateurs | Constantes | Contrôle d'exécution | Bibliothèque | Tutoriels |
Description
Fonction: integer llGetAttached( );| 224 | N° de fonction |
| 0.0 | Delais |
| 10.0 | Energie |
Renvoie un integer correspondant au point d'attachement de l'objet ou renvoie zéro si l'objet n'est pas attaché.
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Exemples
<lsl> default {
attach(key id)
{
if (id)//l'objet est attaché
{
if (llGetAttached() != ATTACH_LHAND)
{
llOwnerSay("Attachez-moi à la main gauche SVP");
llRequestPermissions(id, PERMISSION_ATTACH);
}
}
}
run_time_permissions(integer a)
{
if (a & PERMISSION_ATTACH)
llDetachFromAvatar();
}
} </lsl>
Voir également
Évènement
| • | attach | – | Evènement déclenché lorsque l'objet est attaché ou détaché. |
Fonctions
| • | llAttachToAvatar | – | Permet d'attacher un objet à un avatar | |
| • | llDetachFromAvatar | – | Permet de détacher un objet d'un avatar |
Vous cherchez encore des informations ? Peut-être cette page du LSLwiki pourra vous renseigner.