Page 1 of 1

Adding Autoturrets to a land map?

Posted: Sat Dec 11, 2010 8:21 pm
by adventfear
Okay, I am building a map with an enemy base with the goal being to shut down the turrets so you can attack it, and I was wondering two things...

One, how do you place a string of space autoturrets onto a land map.

And two, how do you set them up so when you destroy the autoturret control thingy (from the space maps) they shut off?

Re: Adding Autoturrets to a land map?

Posted: Sat Dec 11, 2010 9:11 pm
by Firefang
1. Look into the space_template folder. All the apace autoturrets are located in there.
2. Look at the space luas also located in in the space_template folder for an exampl of this.

Re: Adding Autoturrets to a land map?

Posted: Sat Dec 11, 2010 9:34 pm
by adventfear
Hidden/Spoiler:
--CIS turrets
turretLinkageCIS = LinkedTurrets:New{ team = CIS, mainframe = "cis-defense",
turrets = {"cis_turr_1", "cis_turr_2", "cis_turr_3", "cis_turr_4", "cis_turr_5", "cis_turr_6"} }
turretLinkageCIS:Init()

function turretLinkageCIS:OnDisableMainframe()
ShowMessageText("level.spa.hangar.mainframe.atk.down", REP)
ShowMessageText("level.spa.hangar.mainframe.def.down", CIS)

BroadcastVoiceOver( "ROSMP_obj_20", REP )
BroadcastVoiceOver( "COSMP_obj_21", CIS )
end
function turretLinkageCIS:OnEnableMainframe()
ShowMessageText("level.spa.hangar.mainframe.atk.up", REP)
ShowMessageText("level.spa.hangar.mainframe.def.up", CIS)

BroadcastVoiceOver( "ROSMP_obj_22", REP )
BroadcastVoiceOver( "COSMP_obj_23", CIS )
end
That the code I need?

Re: Adding Autoturrets to a land map?

Posted: Sat Dec 11, 2010 10:38 pm
by SAMofBIA
indeed it is, but you will have to name your turrets cis_turr1 and such
edit: you probobly dont need the VO's though.