Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Queue limit for collision_start() events

Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
08-12-2005 10:27
Does anyone know if there's a limit to the number of collision_starts() you can queue up other than the 64 limit for all events? Is there anything odd about how they're handled?
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
08-12-2005 10:38
I beleive events that uses llDetected functions are limited to 16 results. And the idea is that the event isn't put in the que twice. That said you should really test how it works.

Something like this...
and shoot it 40+ times with a gun rapidly and see what happens.

CODE

default
{
collision_start(integer a)
{
llOwnerSay(a);
llSleep(30.0);
}
}
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
08-13-2005 10:01
The answer would appear to be it stores 8 collisions.

No difference between full auto bursts (100+ rounds), multiple three round bursts or rapid single shots. No difference with different types of gun and bullet.

No difference whether I use collision_start(), collision() or collision_end() either. It's a totally solid 8 collisions.

(And just for pedantry llOwnerSay() prefers (string)a to a in your example code of course.)
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
08-13-2005 11:44
:p i did say "something like this"
thx for the code correction, must have slipped my mind.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
08-13-2005 15:31
I'm sure you'd have caught it Strife, but just in case anyone else is reading this... :)
Blain Candour
Registered User
Join date: 17 Jun 2005
Posts: 83
08-14-2005 23:47
Good to know it is 8. Thanks.