Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Firing Bullets through linked objects?

Johnny Mann
Registered User
Join date: 1 Oct 2005
Posts: 202
07-04-2006 06:41
Hi,

I'm currently working on a plane. I have two barrels that shoot when a message is linked that i am pressing the left button in mouselook (like alot of planes) - but this where im stuck -

How can I make the bullets continue to fire if I hold the mouse button down? I know how to make this work if the bullets were coming from the drivers seat, but I dont know how to make this work via linked objects.

Anyone have any tips?

Thanks.
Eata Kitty
Registered User
Join date: 21 Jan 2005
Posts: 387
07-04-2006 07:03
Either have a timer event in the main script that continues to send messages or put timers in each gun and use on/off messages. The second is more efficient and should give a higher and more consistent rate of fire.
Johnny Mann
Registered User
Join date: 1 Oct 2005
Posts: 202
07-04-2006 08:24
so I would

set a timer in state entry and under timer have one bullet fire (rez)?


I suppose this would work with a default and a second state (for on and off) . Cool thanks, didnt think of that.