Autoturret

Post everything from general questions, to modding questions, to map WIPs to releases. (SWBF1 only)

Moderator: Moderators

Post Reply
jb

Autoturret

Post by jb »

Hello!

Why does the following code not work (concerning an autoturret)?

Code: Select all

PilotType = "self"
Controllable = "1"
AutoFire = "1"
I found this code using the forum-search and added it to the turret's ODF, but everything the turret does
is firing straight in a line with no clear aim...
Any ideas why this doesn't work?

Using the forum-search I read something about "setting the turret to a team", but I don't understand it.

Thanks for any help (and excuse my bad English for I'm a German),

jb
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Autoturret

Post by Qdin »

Hello.

Bandu and Rends once found an 'auto turret' command. but unfortunately, they couldn't make the turret shoot after aiming :roll: so it seems that it just shot everywhere :roll:

but I think there's also sometimes something like 'CanTargetEnemy' and 'CanTargetNeutral' and 'CanTargetFriend' so maybe if these are 0 or 1?

anyways - I hope this is useful.

- Qdin
jb

Post by jb »

Thank you. I already added the turret to a team (I finally understood it: Just set the team number in ZeroEdit)
but it keeps firing without aim... I also added

Code: Select all

TargetEnemy = "1"
as one can find it in several weapon's ODFs...
But I'll try it out your suggestion as well, thanks.

By the way, you said:
Bandu and Rends once found an 'auto turret' command.
Do you know how they found it? Is there a special list containing all ODF-Commands somewhere in the Internet?

Thank you,

jb
Leviathan
Missing Jedi Admin
Posts: 3277
Joined: Fri Nov 12, 2004 2:54 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 Leviathan »

jb, here is the thread Lord-Bandu had created to engage a discussion about Auto-Turrets... (However, never forget that : "The 'Search' feature is your best ally..." :wink: )

PS : By the way, welcome on GameToast bulletin-boards !...
jb

Post by jb »

Well, I used the search and read this thread. After having read this thread, I added all the parameters listed.
Unfortunately this didn't work and that's why I opened up a new thread. If you had read my post carefully,
you would've recognized that I've already used the forum-search ;-) :
I wrote: I found this code using the forum-search
The thread you linked contained no real answer whether an autoturret worked with this code.
Additionally, this code didn't work as I tried it, either.
Therefore I decided to open up a new thread in order to ask whether a new working code was found...

Hopefully I was able to specify my reasons for opening up a new thread. ;)

jb
User avatar
Laserblast
Second Lance Corporal
Second Lance Corporal
Posts: 105
Joined: Sat Sep 17, 2005 12:25 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Post by Laserblast »

The autofire only seems to mean the gun will fire without an AI or human controlling it. Only time it was really used was for the Ion Cannon on Hoth so that it appeared that it was taking shots at the ISDs. Similarly, when I switched a remote over to "self," all that changed is I died when it did. Anyone actually seen a turret working without anyone directly controlling it with any code (in BF not BF2 where it is clearly possible)?
Post Reply