- 0
How to create prim bullet target?
You are about to reply to a thread that has been inactive for 3626 days.
Please take a moment to consider if this thread is worth bumping.
Please take a moment to consider if this thread is worth bumping.
Question
Rolig Loon
Registering a hit is not difficult. When you write a script for your target , you just include a collision_start event. That's automatically triggered when anything hits the object. Follow the link to the wiki page that decribes the collision_start event. That's not the tricky part of the project, though. You don't simply want to know that a bullet hit the target. You want to know where it hit, so that you know how many points to award. For that, you'll need to use a llDetectedTouchST function and a bit of math. Finally, changing color is a snap. You just use a llSetColor function. This is a nice, not too difficult challenge, but it will take you some time if you have never done any scripting in LSL.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now