|
Shino Ethaniel
Registered User
Join date: 17 Nov 2008
Posts: 6
|
11-17-2008 10:09
Yeah im new to second life and i made a ninja star and i want to know how to throw it and when ever it hits someone it alerts them that i just gave them something that they can keep. I just wanted to know if anyone could help me out.
|
|
Yumi Murakami
DoIt!AttachTheEarOfACat!
Join date: 27 Sep 2005
Posts: 6,860
|
11-17-2008 10:16
From: Shino Ethaniel Yeah im new to second life and i made a ninja star and i want to know how to throw it and when ever it hits someone it alerts them that i just gave them something that they can keep. I just wanted to know if anyone could help me out. Look at the Popgun which comes in the Library - it included a simple script for firing objects. Throwing them will be essentially the same (at least it will be for something like a ninja star which is thrown in straight lines). You probably don't want to fire them out of a gun, but for throwing you can just make the "gun" object invisible so it looks like your avatar is throwing them (you can't add scripts to an avatar, so you'll have to have SOME kind of object for the scripts to run in, maybe a ninja hand guard or something like that) You can't make the object that's thrown into them jump into their hands and be "given" to them - once it's rezzed in the world it's "yours", they can't take it, and a script can't change that. What you can do is to make the "star thrower object" detect the person you threw a star at, and offer to give them a copy of the star that they can keep if they want. They'll get a choice to keep it or not. Bear in mind though, that if you do this, throwing multiple stars at someone will spam them with dialog boxes - which is technically AR-able.
|
|
Shino Ethaniel
Registered User
Join date: 17 Nov 2008
Posts: 6
|
11-17-2008 11:07
thanks alot Yumi. i don't want to throw multiple stars at someone just like once, and then let them have it to do the same thing to someone else. Ill put tezt in there to say only throw once.
i really appreciate it.
New questions for someone. Does anyone know how i can upload a downloadable pdf to second life?
|
|
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
|
11-17-2008 16:46
Short answer: you can't. Sorry!
What you can do is upload each page of the PDF as an image, and then put it all together in a scripted 'book' or on several separate prims. However, people would need to be in SL to actually view it.
If you really need a PDF, then the best thing to do is upload to some external server (a website somewhere) and then write a script with "llLoadURL" to give somebody the address where they can download it.
|
|
Shino Ethaniel
Registered User
Join date: 17 Nov 2008
Posts: 6
|
11-18-2008 22:28
yeah i was discussing it with some of my classmates and we came up with the same solution. thanks. Everyone is so helpful, i am so thankful.
|