Task 1 was creating a script that upon touch, says avatar name and displays a message according to the time of day from England. The llGetGMTclock function was used, this returns the time past 00.00. This was then stored as an integer. Depending on the number of the integer, using if-else and nested if-else statements it was quite easy to work out the time of day.
For task 2 I had to create a script that would on collision with, say the name of the avatar or object and say the speed that it was travelling upon collision. It should also say the owner the of the object. This took a little bit of searching to get it down but in the end it worked! I used functions llVecMag and llDetectedVel to work out how fast the collision object was travelling. To work out the ownership of the avatar or object was done by llKey2Name and then llGetOwner. I must say I am starting to dislike scripting, but only because of all the mind-games it plays with me. Anyway, onward!
Task 3 was definitely the most difficult task for this weeks exercises. :( It was to create a script so that if touched, by the owner of the object, it scanned a 50m radius for avatars. But if it was not the owner of the object to only scan 25m.
The difficult part was not checking to see if it was the owner that had clicked or not, that was easy. A simple If-else statement was put in. The difficult part was displaying all the avatars found in a reasonable way. The only way I could do this was to create a while loop that would go through each detected name and then print to screen.




