Adding Autoturrets to a land map?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
adventfear
Rebel Sergeant
Rebel Sergeant
Posts: 199
Joined: Fri Feb 29, 2008 3:46 pm

Adding Autoturrets to a land map?

Post 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?
User avatar
Firefang
Major
Major
Posts: 518
Joined: Mon Nov 15, 2010 8:55 pm
Location: California

Re: Adding Autoturrets to a land map?

Post 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.
adventfear
Rebel Sergeant
Rebel Sergeant
Posts: 199
Joined: Fri Feb 29, 2008 3:46 pm

Re: Adding Autoturrets to a land map?

Post 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?
User avatar
SAMofBIA
Major General
Major General
Posts: 649
Joined: Tue Jun 15, 2010 3:38 pm
Projects :: Nothing....nothing at all.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: MIA and not stopping in often anymore.

Re: Adding Autoturrets to a land map?

Post 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.
Post Reply