oriondean Posted April 18, 2020 Share Posted April 18, 2020 so I have some questions about the railgun mod the dev uses as an example. found here: https://avorion.gamepedia.com/Mod_Example:_Weapon in the turretgenerator.lua file there is a command TurretGenerator.scale(rand, result, WeaponType.GattlingRailGun, tech, 0.75). what is that 0.75? is scale "the size in blox" or is it the slot size? if there is a command to change the slot size in this mod example, where is it? Link to comment Share on other sites More sharing options...
deep Posted April 20, 2020 Share Posted April 20, 2020 The slot and scale of the turret are managed by "scales [WeaponType.GatlingRailGun]". The sample mod specifies to use the parameters of the vanilla rail gun. scales [WeaponType.GatlingRailGun] = scales [WeaponType.RailGun] If you want to specify the original slot and size, you need to specify it. Example. scales [WeaponType.GatlingRailGun] = { {from = 0, to = 28, size = 1.5, usedSlots = 3}, {from = 29, to = 38, size = 2.0, usedSlots = 4}, {from = 39, to = 49, size = 3.0, usedSlots = 5}, --dummy for cooaxial, add1 to size and level {from = 50, to = 52, size = 3.5, usedSlots = 6}, Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now