Team Specific Turrets? (console modding)

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
User avatar
xII DM IIx
Private First Class
Posts: 77
Joined: Thu Jul 23, 2009 3:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Italy

Team Specific Turrets? (console modding)

Post by xII DM IIx »

Is there a way to assign empty turrets to a team?

An example of what I mean is during the Mygeeto campaign, the particle cannon turrets on the sides of the bridge are automatically on the CIS team and fire at the LAATs above w/o having a CIS unit inside them.

How would I go about setting up something like this?
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: Team Specific Turrets?

Post by Xavious »

You would need to give the turret a PilotType = "self" and also assign it to the team you want it on in ZeroEditor.
User avatar
xII DM IIx
Private First Class
Posts: 77
Joined: Thu Jul 23, 2009 3:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Italy

Re: Team Specific Turrets?

Post by xII DM IIx »

Ah, so there's no way to do this other than in ZeroEditor?
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: Team Specific Turrets?

Post by Frisbeetarian »

That's correct. You have to put the turrets in ZE anyways, what's the problem?
User avatar
xII DM IIx
Private First Class
Posts: 77
Joined: Thu Jul 23, 2009 3:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Italy

Re: Team Specific Turrets?

Post by xII DM IIx »

W-ell, I'm tinkering around with modding on consoles, so I can't use ZeroEditor to edit the stock maps.

I wanted to try to make the remote turrets in space have the PilotType = "self" property and then set them onto a specific team, but alas, I can't apparently.

Thanks for your help.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Team Specific Turrets?

Post by [RDH]Zerted »

Read the scripting doc. You can change the team of things through the Lua. You can use SetObjectTeam() or SetProperty().
User avatar
xII DM IIx
Private First Class
Posts: 77
Joined: Thu Jul 23, 2009 3:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Italy

Re: Team Specific Turrets? (console modding)

Post by xII DM IIx »

I've tried both SetProperty and SetObjectTeam like this:

("tur_bldg_spa_rep_beam", Team, 1)

However, neither of them worked.

Any ideas?
User avatar
Par3210
Jedi
Jedi
Posts: 1033
Joined: Sun Jun 14, 2009 10:31 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Owning people in SWBF2
Contact:

Re: Team Specific Turrets? (console modding)

Post by Par3210 »

Have you tried..
Hidden/Spoiler:
("tur_bldg_spa_rep_beam", REP)
?
Hidden/Spoiler:
("tur_bldg_spa_rep_beam", CIS)
Well? Maybe it will work :thumbs:
User avatar
xII DM IIx
Private First Class
Posts: 77
Joined: Thu Jul 23, 2009 3:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Italy

Re: Team Specific Turrets? (console modding)

Post by xII DM IIx »

I tried it just now, but it didn't work, unfortunately. -_-

Whether or not I defined the turrets PilotType to "self" yet shouldn't matter should it? Even if I haven't told it to pilot itself, if I entered the "SetObjectClass" in correctly, the turret would still be on the team that I told it to be on, right?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Team Specific Turrets? (console modding)

Post by [RDH]Zerted »

Team is the name of the property you are changing, thus it is a string: SetProperty("tur_bldg_spa_rep_beam", "Team", 1) and SetProperty("tur_bldg_spa_rep_beam", "PerceivedTeam", 1)
Post Reply