Wiremod - How can I make rockets fire one after the other on the same key.
4 replies, posted
Basically, I have a plane with 2 rockets on each wing and I want them to fire the outer rockets on both wings first, at the same time - then fire the inner rocket on each wing at the same time. I want to do this while both sets of rockets are launched by pressing Mouse 2. Any help?
Do you want it to fire the second rack automatic (on the same trigger hold) or sequentially (click again to fire second rack)
For auto:
[code]
if(Fire)
{
Rack1fire = 1
Time = Time+1 #the 1 is based on your interval. if the chip's interval is 100 this is .1 second.
}
if(Time == 1)
{
Rackfire2 = 1
}
if(!Fire)
{
Rack1fire = 0
Rack2fire = 0
Time = 0
}
[/code]
Persist Time, input fire, and rack1fire / rack2fire as outputs
[QUOTE=Fourm Shark;49908246]Add a delay using a timer[/QUOTE]
Sorry, I guess I wasn't specific enough, I want to be able to fire them with two trigger clicks, not just a delay - my bad :)
[editline]11th March 2016[/editline]
[QUOTE=Amplar;49909807]Do you want it to fire the second rack automatic (on the same trigger hold) or sequentially (click again to fire second rack)
For auto:
[code]
if(Fire)
{
Rack1fire = 1
Time = Time+1 #the 1 is based on your interval. if the chip's interval is 100 this is .1 second.
}
if(Time == 1)
{
Rackfire2 = 1
}
if(!Fire)
{
Rack1fire = 0
Rack2fire = 0
Time = 0
}
[/code]
Persist Time, input fire, and rack1fire / rack2fire as outputs[/QUOTE]
Yeah sorry, my bad, I want to fire the second rack on a second trigger click - probably should have been more specific about that - and do you know how to do that? You told me how to do it or auto, but do you know how to do it on another click?
Sorry, you need to Log In to post a reply to this thread.