LlList2Rot/fr: Difference between revisions
Jump to navigation
Jump to search
Gally Young (talk | contribs) Localized to french |
m Attempting to sort it better |
||
| Line 36: | Line 36: | ||
|notes | |notes | ||
|permission | |permission | ||
|cat1=List/fr | |cat1=List/fr | ||
|cat2 | |cat2 | ||
Revision as of 03:00, 5 April 2008
| LSL Portail Francophone | LSL Portail Anglophone | Fonctions | Évènements | Types | Operateurs | Constantes | Contrôle d'exécution | Bibliothèque | Tutoriels |
Description
Fonction: rotation llList2Rot( list src, integer index );| 191 | N° de fonction |
| 0.0 | Delais |
| 10.0 | Energie |
Renvoie un rotation correspondant à un élément du list src identfié par l'index.
| • list | src | |||
| • integer | index |
index accepte les index négatifs.
Si l’élement à l’index du list src n’est pas une rotation, la fonction renvoie <0.0, 0.0, 0.0, 1.0> (idem si l’index est hors limite).
dans ce cas utilisez : (rotation)llList2String(src, index);
Spécifications
| Index | Positif | Negatif |
|---|---|---|
| Premier | 0 | - longueur |
| Dernier | longueur - 1 | -1 |
Avertissements
- Quand la fonction est utilisée avec un string, la fonction renvoie un ZERO_ROTATION
- La syntaxe suivante permet de résoudre le problème: (rotation)llList2String(src, index);
Exemples
// Mieux visible dans l’historique du chat (ctrl-h)
default
{
state_entry()
{
list my_list = ["a", 1, 2.0, <1,2,3>, <1,2,3,4>, llGetOwner()];
integer i;
for (i=0;i<llGetListLength(my_list); ++i)
{
llOwnerSay("string=" + llList2String(my_list,i)
+ "\n integer=" + (string)llList2Integer(my_list,i)
+ "\n float=" + (string)llList2Float(my_list,i)
+ "\n vector=" + (string)llList2Vector(my_list,i)
+ "\n rot=" + (string)llList2Rot(my_list,i)
+ "\n key=" + (string)llList2Key(my_list,i) );
}
}
}
Voir également
Fonctions
| • llGetListEntryType | Renvoie le type d’un élément d’un list | |||
| • llList2String | Renvoie un élément d’un list |
Articles
| • | Negative_Index |
Vous cherchez encore des informations ? Peut-être cette page du LSLwiki pourra vous renseigner.