Team Specific Turrets? (console modding)
Moderator: Moderators
- xII DM IIx
- Private First Class
- Posts: 77
- Joined: Thu Jul 23, 2009 3:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Italy
Team Specific Turrets? (console modding)
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?
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

- Posts: 2783
- Joined: Mon Jun 12, 2006 3:46 pm
Re: Team Specific Turrets?
You would need to give the turret a PilotType = "self" and also assign it to the team you want it on in ZeroEditor.
- xII DM IIx
- Private First Class
- Posts: 77
- Joined: Thu Jul 23, 2009 3:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Italy
Re: Team Specific Turrets?
Ah, so there's no way to do this other than in ZeroEditor?
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Team Specific Turrets?
That's correct. You have to put the turrets in ZE anyways, what's the problem?
- xII DM IIx
- Private First Class
- Posts: 77
- Joined: Thu Jul 23, 2009 3:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Italy
Re: Team Specific Turrets?
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.
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.
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Team Specific Turrets?
Read the scripting doc. You can change the team of things through the Lua. You can use SetObjectTeam() or SetProperty().
- xII DM IIx
- Private First Class
- Posts: 77
- Joined: Thu Jul 23, 2009 3:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Italy
Re: Team Specific Turrets? (console modding)
I've tried both SetProperty and SetObjectTeam like this:
("tur_bldg_spa_rep_beam", Team, 1)
However, neither of them worked.
Any ideas?
("tur_bldg_spa_rep_beam", Team, 1)
However, neither of them worked.
Any ideas?
- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Team Specific Turrets? (console modding)
Have you tried..
?
Well? Maybe it will work 
Hidden/Spoiler:
Hidden/Spoiler:
- xII DM IIx
- Private First Class
- Posts: 77
- Joined: Thu Jul 23, 2009 3:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Italy
Re: Team Specific Turrets? (console modding)
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?
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?
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Team Specific Turrets? (console modding)
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)
