Nexus Modding > Scripting

Staggering weapon firing

(1/3) > >>

jstubbles:
Hey all, just wondering if it's possible to make different kinds of firing solutions on weapons. So lets say a ship has 8 turrets of one weapon type and you choose "destroy hull" - right now they all fire at the exact same time. Is there a way to change that, or create a new weapon function button, that staggers the firing, so there's like a quarter second delay between each weapon firing?

Mularac:
the easiest solution to that problem would be to create different weapon types, for example: Railgun I,II,III etc, each one of them with an slightly different loading time, probably something less than a second (for example, the railgun I takes 10'' to load, the II takes 10.5, the III 9.3, the IV 11, and so on)

Either that or you could build an script that would delay the shots manually and produce that effect, although I strongly recommend you choose always the simplest solution to a problem.

jstubbles:
Yeah, easier is always better, just wanted to know which it would be. :)
Thanks.

jstubbles:
The only thing I dislike about this is what if you decide to manually fire the guns, the slower guns are always going to be that much slower, which is kind of silly. But I guess that's just one more limitation of Nexus :P

GeoModder:
Not necessarily. If you choose to put it in code, you can put a random loading time for every cannon of the same type that is loading again after it has fired.

Or else you sort of create a loading time list for every single one of this particular type of guns when firing begins.

Navigation

[0] Message Index

[#] Next page

Go to full version