Is there a way to trigger a missile to only fire after holding the fire button for 2 seconds? I want to have an internal bomb bay which automatically open when pressing the fire button. I've got that sorted by setting the input to "FireWeapons" but you have to hold the button for about 2 seconds for the bomb bay to fully open. If you release the missile fire button, the bay closes again.
alternatively, is there a way to have the bomb bay open longer? So to have it instantly open, but stay open for 2 seconds before automatically closing again?
@VisionAviation
Yep. Figured that out. Oh well.
@ZeroWithSlashedO Oh sorry, no I couldn't figure that one out. I don;t think it's possible. Even if you set delays on everything, if you have a lock and fire the missle, it'll release instantly.
The way I went around it with my FA-20, is delaying the missile ignition. Meaning, the missile will free fall for a certain amount of time and then speed off and manoeuvre.
You can do this by putting "ignitionDelay" in the missile properties. Best use overload for this.
If you want, download my FA-20 v2.0 and look at the properties of any of the missiles. Could help showcasing better what I'm talking about.
@VisionAviation
No, not the bay doors. The missile itself.
Or you didn't specify that you found how to delay the doors closing and not the missiles and I misunderstand way too far.
@ZeroWithSlashedO You can put it in the input of the rotators you use for the doors.
@VisionAviation
This was 23 days ago.
I feel old. But anyway, now I have a question.
Where do you put the code?
@VisionAviation
Thanks dude!
@ZeroWithSlashedO dude go for it! It's free real estate
@VisionAviation
Dude, I was also looking for this. But my brain just isn't smart enough. Can I have your code?
Nevermind, as soon as I posted this I got the idea to use some code I use for landing gear and that worked. this is the code anyway:
round(smooth(clamp01(FireWeapons), FireWeapons? 1/(2 * 0) : 1/(2 * 2))
Change the last 2 to any number in seconds.