Posted: Fri Jul 20, 2012 12:38 pm Post subject:
Weapon that cannot attack Land/Water and Vampiric Weapon
So I'm having problems with my Unit, I've tried making him not able to target land. But to no avail... I've tried everything I know now... Now I'm gonna ask for help...
Code:
[MINION]
UIName=NOSTR:Minion
Name=Robot Tank
Prerequisite=YAWEAP,NAPSIS
ProtectedDriver=true
Primary=MinionGun
;Secondary=MinionGun
;ElitePrimary=MinionGunE
;EliteSecondary=MinionGunE
Strength=180
Category=AFV
Armor=heavy
Turret=yes
IsTilter=no
LandTargeting=2
NavalTargeting=0
Crusher=no
TooBigToFitUnderBridge=true
TechLevel=2
Sight=6
Speed=10
CrateGoodie=no
Owner=YuriCountry,Germans,Africans
Cost=600
Soylent=600
Points=25
ROT=5
IsSelectableCombatant=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
VoiceSelect=RobotTankSelect
VoiceMove=RobotTankMove
VoiceAttack=RobotTankAttackCommand
VoiceFeedback=
DieSound=RobotTankDie
MoveSound=RobotTankMoveStart
CrushSound=TankCrush
MaxDebris=2
SpeedType=Hover
Locomotor={4A582742-9839-11d1-B709-00A024DDAFD1}
MovementZone=AmphibiousDestroyer
ThreatPosed=15 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
Accelerates=false
ImmuneToVeins=yes
Size=3
OpportunityFire=yes
AllowedToStartInMultiplayer=no
ImmuneToPoison=yes
ImmuneToPsionics=yes
ImmuneToRadiation=yes
Trainable=yes
BuildTimeMultiplier=1.3
Next is the Vampiric Weapon, It works but he also heals anything thats beside him by 1 cell. 0.7 is the max it can go to still heal him and yes it still heals other units.
Not target land and water? I am assuming that you're just trying to disable force firing at the ground though, whilst still being able to attack ground units etc. There's one way to do it, but you have to sacrifice automatic target acquiring for it.
It's rather simple, actually. You just give a dummy weapon with all warhead verses values at 0% as primary weapon, and set the actual weapon as secondary weapon. This prevents unit from forcefiring, but also from automatically acquiring targets.
As for the second issue, I am not sure if it's possible to fix it entirely, especially if the muzzle animation is not spawned at the center of the unit (and thus the cell the unit is residing at) due to unit weapon FLH values. _________________ QUICK_EDIT
If you were saying 'cannot target land targets', then LandTargeting=1 would help.
If you were saying 'cannot target clear ground', a Primary= with a Projectile= who has AG=no would help. _________________ Fusion Reactor upgrade is complete.
But I got around it by just giving the Unit 2 Weapons (One for Infantry) and the other for Units (Which has the Vampiric Effect) _________________ ~ Excelsior ~ QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum