Page 1 of 1

Autoturrets don't shoot buildings [Solved]

Posted: Fri Dec 02, 2011 12:33 am
by Noobasaurus
I want my autoturret to shoot buildings, but it doesn't. Here's its odf:
Hidden/Spoiler:
[WeaponClass]
ClassLabel = "cannon"

[Properties]

MuzzleFlash = "med_muzzle_flash"
Discharge = "med_smoke_effect"

RoundsPerClip = "0"

HeatPerShot = "0.0"
HeatRecoverRate = "0.1"
HeatThreshold = "1.5"

MinRange = "0"
OptimalRange = "300"
MaxRange = "300"

RecoilLengthLight = "0.1"
RecoilStrengthLight = "1"
RecoilLengthHeavy = "0.05"
RecoilStrengthHeavy = "1"

ZoomMin = "2.0"
ZoomMax = "8.0"
ZoomRate = "2.0"

ShotDelay = "0.1"

LockOnRange = "300.0"
LockTime = "0.0"
MinSpread = "0.01"
MaxSpread = "0.1"
AutoAimSize = "20.0"

TargetEnemy = "1"
TargetNeutral = "0"
TargetFriendly = "0"

TargetPerson = "1"
TargetAnimal = "1"
TargetDroid = "1"
TargetVehicle = "1"
TargetBuilding = "1"

SalvoCount = "4"
SalvoDelay = ".15 .3"

//**********************************************
//****************** SOUND *********************
//**********************************************

FireSound = "com_weap_turret_fire_mini"


FoleyFXGroup = "metal_foley"
I changed the target building to one, but it doesn't seem to work.

Re: Autoturrets don't shoot buildings

Posted: Fri Dec 02, 2011 12:37 am
by Marth8880
Add "AITargetBuilding = 1". The "TargetHealthtype" parameters are for human players only.

Re: Autoturrets don't shoot buildings

Posted: Tue Dec 06, 2011 9:11 pm
by Noobasaurus
Marth8880 wrote:Add "AITargetBuilding = 1". The "TargetHealthtype" parameters are for human players only.
Well, I found another solution that doesn't involve autoturrets but I'm sure that works. Thanks.

Re: Autoturrets don't shoot buildings [Solved]

Posted: Tue Dec 06, 2011 9:13 pm
by Marth8880
Alright, cool!

What is it?

Re: Autoturrets don't shoot buildings [Solved]

Posted: Tue Dec 06, 2011 9:17 pm
by Noobasaurus
Marth8880 wrote:What is it?
An effect with a bunch of lasers shooting up.

Re: Autoturrets don't shoot buildings [Solved]

Posted: Tue Dec 06, 2011 9:18 pm
by Marth8880
Ah, I see. Okay then, cool!