So i've been working on a fire staff. I have everything figured out. except that i cant get the lldie script to work on the fireballs that shoot out. so they just set on the ground after being shot. i need help, i have absolutely no idea what i am doing. the script i made will work when i set it, but not trigger on rez. this is what i had going from what i could find online.
integer counter;
float gap = 2.0;
default
{
state_entry()
{
llSetTimerEvent(gap);
}
on_rez(integer total_number)
{
llSetTimerEvent(0.0);
counter = 0;
}
timer()
{
++counter;
llDie();
}
}