Private Joined: 5/7/2015(UTC) Posts: 9 Thanks: 3 times
|
So basically, I am modifying the weapons of units just for fun. I tried to make the scorpion tank an ultimate tank by changing things and whatnot. I added a few stuff to the scorpion missile for it to be able to attack aircrafts. Here's the code: Quote:Weapon ScorpionMissileWeapon PrimaryDamage = 100.0 PrimaryDamageRadius = 5.0 SecondaryDamage = 80.0 SecondaryDamageRadius = 25.0 ScatterRadiusVsInfantry = 10.0 ;When this weapon is used against infantry, it can randomly miss by as much as this distance. AttackRange = 150.0 MinimumAttackRange = 40.0 DamageType = EXPLOSION ; ignored for projectile weapons DeathType = EXPLODED WeaponSpeed = 900 ; ignored for projectile weapons ProjectileObject = ScorpionMissile ProjectileExhaust = MissileExhaust VeterancyProjectileExhaust = HEROIC HeroicMissileExhaust FireFX = FX_BuggyMissileIgnition FireSound = ScorpionMissileWeapon RadiusDamageAffects = ALLIES ENEMIES NEUTRALS DelayBetweenShots = 650 ; time between shots, msec ClipSize = 2 ; how many shots in a Clip (0 == infinite) ClipReloadTime = 700 ; how long to reload a Clip, msec AutoReloadsClip = Yes AntiAirborneVehicle = Yes AntiAirborneInfantry = Yes ProjectileDetonationFX = WeaponFX_RocketBuggyMissileDetonation This is probably something a 10 year old can solve, but apparently, I can't. Any help?
|
|
|
|
General Joined: 4/10/2014(UTC) Posts: 1,591 Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex Thanks: 16 times Was thanked: 247 time(s) in 217 post(s)
|
We can't solve a problem unless you tell us what is wrong.
Also in the future please use the [code=plain] tag for code. |
|
|
|
|
Private Joined: 5/7/2015(UTC) Posts: 9 Thanks: 3 times
|
Oops. Forgot to write that. xD The scorpions still don't want to attack aircrafts. The bold text on the code are the ones I added in.
|
|
|
|
General Joined: 4/10/2014(UTC) Posts: 1,591 Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex Thanks: 16 times Was thanked: 247 time(s) in 217 post(s)
|
are you selecting aircraft as attack targets or letting them choose their own? |
|
|
|
|
Private Joined: 5/7/2015(UTC) Posts: 9 Thanks: 3 times
|
Yes. I try to select the aircrafts, but it gives me the "no" cursor.
|
|
|
|
General Joined: 4/10/2014(UTC) Posts: 1,591 Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex Thanks: 16 times Was thanked: 247 time(s) in 217 post(s)
|
you probably have to edit the unit itself as well as the weapon ini |
|
|
|
|
Major Joined: 3/27/2015(UTC) Posts: 490
Thanks: 5 times Was thanked: 213 time(s) in 155 post(s)
|
Okay... Do you have this on the unit's WeaponSet: Code:
PreferredAgainst = SECONDARY VEHICLE AIRCRAFT
|
|
1 user thanked Zatsupachi for this useful post.
|
|
|
Private Joined: 5/7/2015(UTC) Posts: 9 Thanks: 3 times
|
Eh, a quick update on my problem: It was actually an extremely dumb mistake ._. (I'm very new to modding) I forgot to place the AntiAirborneVehicle = Yes AntiAirborneInfantry = Yes on ScorpionMissileWeaponPlusTwo... So, yeah... Sorry for that. >_<
|
|
|
|
Users browsing this topic |
Guest
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.