Auto Turrets...
Moderator: Moderators
Auto Turrets...
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.
-
- Old School Staff
- Posts: 2059
- Joined: Wed Feb 23, 2005 9:54 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
RE: Auto Turrets...
I think I recall it's mentioned in the Docs somewhere
RE: Auto Turrets...
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.
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.
--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.