Turrets that are on a set team and fire by themselves?
Moderator: Moderators
- Broadus
- Second Lance Corporal

- Posts: 110
- Joined: Thu Sep 21, 2006 1:23 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Turrets that are on a set team and fire by themselves?
Anyone who's played the space levels is probably aware that, on the top of the big ships, there are small turrets. Normally, AI have to sit in chairs to use them.
What I'd like to do is make these turrets be on defined teams and fire by themselves.
Does anyone know how I might go about doing that?
What I'd like to do is make these turrets be on defined teams and fire by themselves.
Does anyone know how I might go about doing that?
- Broadus
- Second Lance Corporal

- Posts: 110
- Joined: Thu Sep 21, 2006 1:23 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
-
-Yock-
- trainmaster611
- Sith Lord

- Posts: 1779
- Joined: Thu Aug 24, 2006 5:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Building a railway to Coruscant
- Contact:
- Broadus
- Second Lance Corporal

- Posts: 110
- Joined: Thu Sep 21, 2006 1:23 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
-
Qdin
- Old School Staff
- Posts: 2059
- Joined: Wed Feb 23, 2005 9:54 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Broadus
- Second Lance Corporal

- Posts: 110
- Joined: Thu Sep 21, 2006 1:23 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
-
-Yock-
- Broadus
- Second Lance Corporal

- Posts: 110
- Joined: Thu Sep 21, 2006 1:23 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Epena
- Old School Staff
- Posts: 1176
- Joined: Fri Oct 21, 2005 2:33 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- trainmaster611
- Sith Lord

- Posts: 1779
- Joined: Thu Aug 24, 2006 5:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Building a railway to Coruscant
- Contact:
-
Rikino
Sorry, I don't think you can make auto turrets with only changing the mission.lvl. An auto turret needs to have a side defined, usually done in Zeroeditor (I think you could also do it via odf, but I dunno about that). If you just switched normal turrets out with an autoturret (say, tur_bldg_chaingun_tripod, the only self-controlled turret I can find in the normal tur side), it would be self-controlled, but it wouldn't be on anyone's team, so it would just sit there.
I haven't tested that specifically, it's just from what I've gathered. (Just thought of somthing: can't you change the team of an object via the lua? 'SetProperty("tur_bldg_chaingun_tripod1", "Team", 2)', or somthing? That might work if you manage to get a self-controlled turret ingame.
One more thing, I don't really know how 'SetProperty' works, but you might be able to use 'SetProperty("tur_bldg_chaingun_tripod1", "Pilottype", "self")' to give somthing the self-controlling attribute.
I haven't tested that specifically, it's just from what I've gathered. (Just thought of somthing: can't you change the team of an object via the lua? 'SetProperty("tur_bldg_chaingun_tripod1", "Team", 2)', or somthing? That might work if you manage to get a self-controlled turret ingame.
One more thing, I don't really know how 'SetProperty' works, but you might be able to use 'SetProperty("tur_bldg_chaingun_tripod1", "Pilottype", "self")' to give somthing the self-controlling attribute.
- trainmaster611
- Sith Lord

- Posts: 1779
- Joined: Thu Aug 24, 2006 5:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Building a railway to Coruscant
- Contact:
-
RC-1290
You just need to add in the .odf.
Code: Select all
PilotType = self- trainmaster611
- Sith Lord

- Posts: 1779
- Joined: Thu Aug 24, 2006 5:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Building a railway to Coruscant
- Contact:
