Page 1 of 1

Can you make a standard Turrent a auto enemy?

Posted: Sat Dec 16, 2006 5:35 pm
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.

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

Posted: Sat Dec 16, 2006 5:58 pm
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.

Make a standard Turret an auto enemy

Posted: Sat Dec 16, 2006 6:47 pm
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"

Posted: Sat Dec 16, 2006 7:50 pm
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...

Posted: Sat Dec 16, 2006 10:53 pm
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.