LlGetAttached/fr: Difference between revisions
Jump to navigation
Jump to search
m Big proofreading |
m typo |
||
| 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) | ||
| Line 34: | Line 34: | ||
|also_functions={{LSL DefineRow||[[llAttachToAvatar/fr|llAttachToAvatar]]|Permet d'attacher un objet à un avatar}} | |also_functions={{LSL DefineRow||[[llAttachToAvatar/fr|llAttachToAvatar]]|Permet d'attacher un objet à un avatar}} | ||
{{LSL DefineRow||[[llDetachFromAvatar/fr|llDetachFromAvatar]]|Permet de détacher un objet d'un avatar}} | {{LSL DefineRow||[[llDetachFromAvatar/fr|llDetachFromAvatar]]|Permet de détacher un objet d'un avatar}} | ||
|also_events={{LSL DefineRow||[[attach/fr|attach]]| | |also_events={{LSL DefineRow||[[attach/fr|attach]]|Évènement déclenché lorsque l'objet est attaché ou détaché.}} | ||
|also_tests | |also_tests | ||
|also_articles | |also_articles | ||
Latest revision as of 01:37, 30 August 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 | – | Évè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.