LlGetAttached/fr
From Second Life Wiki
| Portail LSL | | | Fonctions | | | Évènements | | | Types | | | Constantes | | | Contrôle d'exécution | | | Bibliothèque de scripts | | | Tutoriels |
Description
Fonction: integer llGetAttached( );| 224 | N° de fonction |
| 0.0 | Délai |
| 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
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(); } }
Voir également
Evè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 |

