Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string first = "Test";
- string last = "Bot";
- key userToDuplicate;
- key botID;
- default
- {
- state_entry()
- {
- //On startup, we'll generate a new bot, then make it move when we touch it
- //Create the bot with the given first/last name and the user whose appearance it will duplicate
- userToDuplicate = llGetOwner();
- integer i = 0;
- integer a = 0;
- for(a = 0; a < 10; a++)
- {
- for(i = 0; i < 10; i++)
- {
- botID = botCreateBot(first, last, userToDuplicate, llGetPos());
- //Now give it a list of positions to go around
- list positions = [llGetPos(), llGetPos() + <0, 20 + (i * 2), 20>, llGetPos() + <20, 0 + (i * 2), 20>];
- //Now tell it how it will get there
- //0 - Walk to the next target
- //1 - Fly to the next target
- list types = [1,1,1];
- //Now tell the bot what to do
- //botSetMap(botID, positions, types, BOT_FOLLOW_FLAG_INDEFINITELY);
- llSleep(1);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement