Page 1 of 1

Auto Turrets...

Posted: Sat Feb 25, 2006 12:58 pm
by ruasoh
Has anyone messed with auto turrrets yet? Esp. the ones on the support ships (the acclamator class, blockade runner, etc.) I imagine there's a script somewhere linking them to the sides, but I've looked all through the mission lua's and turret & ship odfs and can't find anything in the documentation.

RE: Auto Turrets...

Posted: Sat Feb 25, 2006 2:08 pm
by Qdin
I think I recall it's mentioned in the Docs somewhere

RE: Auto Turrets...

Posted: Sat Feb 25, 2006 3:48 pm
by LordofEntropy
All the turret are in C:\BF2_ModTools\assets\sides\tur\ They made turrets their own side i guess. The space ones have tags tur_weap_spa_XXXX. Each turret has a couple files (some have 2, some have up to 4) so you'll have to look through each one to find the correct data to mod.

Posted: Mon Feb 27, 2006 9:53 pm
by ruasoh
I figured out. You have to go into the cmn lua. Here's an example:
--ALL turrets
turretLinkageALL = LinkedTurrets:New{ team = ALL, mainframe = "all-defense",
turrets = {"all_turr_1", "all_turr_2", "all_turr_3", "all_turr_4", "all_turr_5", "all_turr_6", "all_turr_7"} }
turretLinkageALL:Init()

just add a "all_turr_x" for each rebel turret you add.