Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How do I make this gun shoot faster/automatic?

Azarii Fugazi
Registered User
Join date: 26 May 2006
Posts: 4
08-21-2006 14:13
I am slowly learning how to script but right now I barely now anything. Can someone tell me how I can make this script (that was inside of a bullet not a gun) shoot faster?

I put the bulletscript inside a gun that was supposed to shoot rapid fire but the gun only shot like 1 bullet per 10 seconds...
Can someone show the neccesary modifications to make the bullet script shoot faster?

default
{

on_rez(integer param)
{
llSetDamage(50.0);
llSetTimerEvent(6.0);
}

collision_start(integer num)
{
vector vel = llGetVel() * 3000;
llPushObject(llDetectedKey(0), vel, ZERO_VECTOR, FALSE);
}

timer()
{
llDie();
}
}
HtF Visconti
Registered User
Join date: 21 Jul 2006
Posts: 123
08-22-2006 05:06
Um - I am very new to scripting myself but this looks, indeed, like a bullet script. This is what the bullet is executing once it has been fired.

What you want is a GUN script that fires these bullets faster. There's no way by modding *this* script to make the GUN shoot faster. Only thing you can do here is to make the bullet have more or less kinetic energy and to last longer than 6 seconds.