|
Jade Calamity
Registered User
Join date: 17 Jan 2009
Posts: 2
|
01-22-2009 03:48
So.. like many others. I tried my hand at modifying one of those freebie guns into something far more reasonable to use and play with. I have nearly tweaked, adjusted and re-scripted what I got into what I want, but I've come to a road block.
The weapon is one of those auto fire weapons and for some reason the bullets keep colliding with each other on and off at random times. So I just need help in fixing this little bug of mine.
The gun uses link messages to tell two scripts to fire. At first I thought it was maybe a timing issue? The two rezzing scripts were probably rezzing the bullets on top of each other and they collided? But after playing with llSleep on both, I couldn't get them to stop.
So I'm wondering if it's something else or I just need to find the magic number for llSleep to get them from avoiding to hit each other.
I'll be more than glad to copy and paste some code I just don't know where to start or end the pasted code. I rather not flood the forum with a few pages of coding now. hehe
Thoughts anyone?
|
|
Taeas Stirling
Registered User
Join date: 4 Sep 2004
Posts: 74
|
01-22-2009 13:25
I have never tried this but how about setting a CollisionFilter in the bullet to ignore other bullets?
|
|
Faust Vollmar
llSetAgentSanity(FALSE);
Join date: 3 Feb 2007
Posts: 87
|
01-22-2009 14:38
The reason you're getting collisions with other bullets is exactly why you said, they're being rezzed atop one another.
Dual Guns usually use a y-axis offset to the left and to the right to prevent this from happening.
|
|
Jade Calamity
Registered User
Join date: 17 Jan 2009
Posts: 2
|
01-22-2009 18:12
reducing the bullet length helped. It was 2m long and now it's 1m. It's not that they are constantly rezzing on top of each other, but just the occasional few from time to time. Usually the first two collide then the rest are good to go for a few seconds then another two and so on such forth.
It's really odd.
|
|
Elmore Philbin
www.philelmore.com
Join date: 12 May 2007
Posts: 73
|
02-02-2009 08:19
You can also work in a slight delay to the firing of the left-hand weapon. This is what was done in the very simple, very reliable Westar blasters that have been floating around forever.
_____________________
- Elmore Philbin (US +1.315.391.1626)
|