probleme dans un script de skyball

Répondre
Partager Rechercher
bonjour,
Voila une voisine à ce script pour sa skyball, d'apres la notecard il faut éditer les lignes
"vector down=<x,y,z>; " et "vector up=<x,y,z>;" pour parametrer la skyball
or lorsqu'on le fait le script dit qu'il y a une erreur sur la ligne vector down=<x,y,z>;
Si quelqu'un a un idée d'ou viens l'erreur je vous serais grès de m'expliquer le b****

merci

Code:
w// STEP 1: SETUP
//This script will assign your Skyball 2 positions. One for the ground, the other for in the air (no pesky teleporting or flyng
// Place the Skyball where you want it.
// Sit in the Skyball
// the next line, replace x, y, and z with the coordinates you see next to the Sim name (three numbers seperated by comas

vector down=<x,y,z>; 

// Next, enter the same x and y values, but make your z value larger. the z value is high high you want the skyball to float

vector up=<x,y,z>;

//vector myPos = llGetPos() + <0, 0, 400>;

// Step 2: Edit the lines below to put in the people for it
// to listen to
// Step 3: SAVE IT
// Step 4: Sit on the platform with the script
// Step 5: To go up type "/78 skyball up" without the quotes in chat
// Step 6: To go down type "/78 skyball down" without the quotes in chat

default
{
    state_entry()
    {
        llListen(96,"",NULL_KEY,"");
        llSay(0,"Plat activated!");
    }

    listen(integer channel, string name, key id, string message)
    {
        
        {
            vector targetposition;
            list strings = llParseString2List(message,[" "],[]);
            string command = llList2String(strings,0);
            string height = llList2String(strings,1);
            if(command=="skyball")
            {
                if(height=="up")
                {
                    targetposition=up;
                }
                else
                {
                    targetposition=down;
                }
                while(llGetPos() != targetposition) llSetPos(targetposition);
            }
        }
    }
}
le "w" sur la 1ere ligne ?

Sinon, vous devez remplacer les valeurs x, y et z par les coordonnées du point que vous visez, parce que x, y et z, le script ne connait pas. Par exemple:
vector down=<128.0,128.0,30.0>;
vector up=<128.0,128.0,400.0>;
ça a été fait
on a essayer en mettant des espaces après les virgules des coordonnées aussi sans résultat


apres test c'est bien le 'w' qui posait probleme merciiiiiiiiiiiii
Répondre

Connectés sur ce fil

 
1 connecté (0 membre et 1 invité) Afficher la liste détaillée des connectés