Linked Turrets
Posted: Fri Nov 09, 2007 1:11 pm
Ok I've read Xwingguy's tut and I still don't really under stand could some one help a.k.a Dumb it down for me?
I completely don't understand this...
I that's all
Thanks
Do I put the list of frigates and turrets in my map on that part?Xwingguy wrote: LinkedFrigate =
{
TurretList = nil, --List of turret names that must be destroyed when the Frigate is destroyed
Frigate = nil, --Name of the frigate (duh)
I completely don't understand this...
And for this do I put the oringinal "LinkedDestroyables" Lua back in?Xwingguy wrote:If you know how to make linkedTurrets or linkedShields, well it's pretty much the same. Here's the key facts:
You must specify TurretList which is the names of the turrets on a certain frigate in the form of an array as shown.
You must specify Frigate which is the name of the certain frigate as shown below.
Code: Select all
--imp Frigates local impfrig1list = {"imp_bldg_frig_turbo", "imp_bldg_frig_turbo1", "imp_bldg_frig_turbo2", "imp_bldg_frig_turbo3", "imp_bldg_boxturret8", "imp_bldg_boxturret10", "imp_bldg_boxturret9" } ImpFrigate1 = LinkedFrigate:New{TurretList = impfrig1list, Frigate = "imp-frigate"} ImpFrigate1:Init() --all Frigates local allfriglist= {"all_bldg_frig_turbo", "all_bldg_frig_turbo1", "all_bldg_frig_turbo2", "all_bldg_frig_turbo3", "all-frigtur1", "all-frigtur2", "all-frigtur3", "all-frigtur4", "all-frigtur5", "all-frigtur6", "all-frigtur7", "all-frigtur8"} AllFrigate = LinkedFrigate:New{TurretList = allfriglist, Frigate = "all-frigate"} AllFrigate:Init()
[/quote][/quote]Xwingguy wrote:Rename the LinkedDestroyables.lua that you just modified to "LinkedFrigate" (without quotes).
Cut this file and paste it into data_???\Common\Scripts
I that's all
Thanks