SmacemanSpiff Grau Posted March 20, 2019 Share Posted March 20, 2019 Is it possible to trigger a collision event if an avatar touches particles emitted by an object? Example: Joe walks by my box that is shooting out sparks. One of the sparks hits Joe (Joe never touches the actual box) and he then catches on fire. While I feel bad for Joe because he wasn't wearing flame retardant mesh clothing, I'm curious if this is possible. If not, any suggestions on how to work around it? Thanks for any direction. Smace Link to comment Share on other sites More sharing options...
Fenix Eldritch Posted March 20, 2019 Share Posted March 20, 2019 (edited) Sadly no, particles can not be interacted with in that way. But if the shower of spark particles being emitted by the object is in a static location, you could use an invisible prim to serve as a collision detector. Edited March 20, 2019 by Fenix Eldritch 1 Link to comment Share on other sites More sharing options...
SmacemanSpiff Grau Posted March 20, 2019 Author Share Posted March 20, 2019 I figured, but it was worth asking. What if the object is mobile? Like a weapon? I have thought of using a sensor or shooting an object in addition to the particles that will then react if it collides with an avatar, but neither one sounds exciting. Thanks for the quick response! Link to comment Share on other sites More sharing options...
Fenix Eldritch Posted March 20, 2019 Share Posted March 20, 2019 (edited) Depending on the kind of weapon... you might try a llVolumeDetect projectile, which makes the object a sort of phantom, but will still register collision_start events. Oh! I forgot about llCastRay too. It works like a laser tripwire.. for a single pulse anyway. You could use that in a stationary location, or in a moving one. Edit: I forgot to add that having your target catch fire might be getting into potential griefing territory if not done extremely carefully. A safe way to do this could be requiring the participating avatars to wear a fire attachment that can be activated when it receives a signal from the spark emitter. Edited March 20, 2019 by Fenix Eldritch Link to comment Share on other sites More sharing options...
steph Arnott Posted March 20, 2019 Share Posted March 20, 2019 38 minutes ago, SmacemanSpiff Grau said: There was a function but LL broke it and have no interest in fixing it. That function is depreciated and has been for years. You could spew a few temp prims but it would have to be a FEW. Or use a sensor. Or as above. Link to comment Share on other sites More sharing options...
SmacemanSpiff Grau Posted March 21, 2019 Author Share Posted March 21, 2019 Thank you for the suggestions. Fenix - I will heed your warning. I tend to live in a bubble with good friends and forget about the "ugly second lifers" that take a fun toy and abuse it. For personal satisfaction, I'm still curious if I can get it to work. Thanks! Link to comment Share on other sites More sharing options...
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