Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. string first = "Test";
  2. string last = "Bot";
  3. key userToDuplicate;
  4. key botID;
  5. default
  6. {
  7. state_entry()
  8. {
  9. //On startup, we'll generate a new bot, then make it move when we touch it
  10. //Create the bot with the given first/last name and the user whose appearance it will duplicate
  11. userToDuplicate = llGetOwner();
  12. integer i = 0;
  13. integer a = 0;
  14. for(a = 0; a < 10; a++)
  15. {
  16. for(i = 0; i < 10; i++)
  17. {
  18. botID = botCreateBot(first, last, userToDuplicate, llGetPos());
  19. //Now give it a list of positions to go around
  20. list positions = [llGetPos(), llGetPos() + <0, 20 + (i * 2), 20>, llGetPos() + <20, 0 + (i * 2), 20>];
  21. //Now tell it how it will get there
  22. //0 - Walk to the next target
  23. //1 - Fly to the next target
  24. list types = [1,1,1];
  25. //Now tell the bot what to do
  26. //botSetMap(botID, positions, types, BOT_FOLLOW_FLAG_INDEFINITELY);
  27. llSleep(1);
  28. }
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement