Jump to content
Sign in to follow this  
bigpickle

Help With LineIntersects

Recommended Posts

Hi all,

I want to have sounds play when :

Player(s) fire a shot while between two objects and the distance between the objects less than 20 meters

I don't know how to put this into a script so I'm appealing for someone to do it for me, I can do the config no problem, its just the script I cant do.

I have 20 samples so I'd like a switch or what ever randomly pick from them.

Thanks

Bp

Share this post


Link to post
Share on other sites

Are they specific classes of objects, or any object on the map? (If specific, can you post up a list).

Also, do you mean, precisely in the middle, or can the objects be off at an angle.

Ex: if first object is dir 90 to player then second object must be dir 270... Or do you mean there is some leeway (first at 90, second at 250 for example)?

I could code something, but would need to know a little more.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×