Can you make a standard Turrent a auto enemy?

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
Vyse
General
General
Posts: 776
Joined: Sun Aug 28, 2005 5:01 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Can you make a standard Turrent a auto enemy?

Post by Vyse »

Is there a line of code I can add to the ODF of a standard turrent to make it attack both teams automaticly.
Murdocr

RE: Can you make a standard Turrent a auto enemy?

Post by Murdocr »

Well i'm not too sure about odf code, but if nobody else knows, try making a new local side, but with no units spawning, and make it an enemy of both teams, and then in ZE just asign the turret to that team. Hope it works if you need to try it. Somone will probably know how to code it though.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Make a standard Turret an auto enemy

Post by AceMastermind »

I believe this will target everything.
Assign it to team "3" in ZE and also add this to the odf:

Code: Select all

Pilottype		= "self"

TargetEnemy         = "1"
TargetFriendly          = "0"
TargetPerson = "1" 
TargetDroid = "1" 
TargetVehicle = "1"
Last edited by AceMastermind on Sat Dec 16, 2006 9:07 pm, edited 1 time in total.
Vyse
General
General
Posts: 776
Joined: Sun Aug 28, 2005 5:01 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Vyse »

Tired it and it didn't work, probably because a standard turrent isn't a vehicle. :(

Would putting the turrent as side 3 in ZE actually work? At some point I think it needs to be told to be automated...
Syth
General
General
Posts: 784
Joined: Thu Apr 13, 2006 8:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: happy fun island

Post by Syth »

you could just put the target lines on everything

TargetEnemy = "1"
TargetFriendly = "1"

you dont need to make 3rd side.

but about the auto thing it doesnt matter that its a turret. i made a normal turret automated before. if it doesnt do anything when you add the pilot self line, it means it doesnt know what to shoot at.

assigning it a team (any team) and adding the target lines should work.
Post Reply