Is it posible to make a weapon fire at the end or start of an animation?
And can i make that animation loop before it fires?
Also could someone explain what these 4 lines do?
And can place crew in a certain position in your module?
So the reason for all of these settings is that there can be weapons where the reload time is greater or lesser than the animation time, and weapons where we want the animation to return to their base state at the end.
So here's some examples:
Let's take a weapon where the animation has 4 frames, ABCD, the interval is 50 ms and the reload time is 100 ms. It fires twice in a row.
Notation: uppercase letters denote frames where the weapon fires.
loop=true, finishLoopCycle=false, msPerShot=50:
aBbCd -- Two shots, each advancing the animation by two frames.
loop=true, finishLoopCycle=true, msPerShot=50:
aBbCda -- Same as above, but we return to the start of the loop at the end.
loop=true, finishLoopCycle=true, msPerShot=150:
aBbCdabcda -- The second shot started a second loop cycle.
aBcAbcd -- The weapon fires faster than its animation, and so it's reset to the start by the second shot. It's not set to finish its loop cycle, so it stays at frame D until the next shot.
A second weapon, where the animation has 4 frames, ABCD, the interval is 50 ms and the reload time is 400 ms. It fires twice in a row.
aBcdaaaaBcda -- Even though it's only meant to advance by 1 frame per shot, we set it to finish its loop cycle, so it goes all the way around to frame A after each shot.
aBbbbbbbC -- Advancing one frame per shot. An example here would be a revolver where each shot lines up the next chamber for firing.
loop=true, finishLoopCycle=false, msPerShot=150:
aBcddddAbc -- Each shot advances the animation by 3 frames, so nearly all the way around, but not quite.
aBcdaaaaBcda -- Each shot does one full animation. This has the same effect as the example above, but for different reasons.
aBccccccBc -- This is badly set up, as frame D never actually gets used, and frame A is never seen again after the first shot.
Zarkonnen can i send you my mod so you can troubleshoot it because i don't know whats wrong with it, every time i get a loading error, i already deleted 2 whole weapon designs because i thought i did something wrong and i'm ANGRY because it doesn't work.
Thanks for the descriptions, Zarkonnen.
WereCat88 - yes, absolutely. Email it here and I'll be happy to take a look. :)