Avorion

Avorion

Not enough ratings
torpedoTurretLib
   
Award
Favorite
Favorited
Unfavorite
Mods: Mod
File Size
Posted
Updated
34.159 KB
30 Jul, 2023 @ 8:12am
15 Aug, 2023 @ 6:36am
3 Change Notes ( view )

Subscribe to download
torpedoTurretLib

Description
Adds a sector script and additional files to enable creating torpedo turrets.

The mod comes with an example turret you can spawn via the debug menu

To create your own torpedo turret mod, configure the vanilla files like you would a regular modded turret and set the projectile lifetime ~0 and timedDeath to true. Then, create the directory data/scripts/Redfrog80/torpedoTurretLib and add three files, torpedolaunchertypes.lua, torpedolaunchfunctions.lua, and torpedoweapongenerator.lua, these are what you use to configure the torpedo launcher. If you refer to my code, you can find instructions on what to add in the files listed above.