How do i make a Missile go straight forward without going up or anything, just going straight for the victim.. um.. target.
Here's the code i've got so far that doesn't really work how i want it to.
From WeaponObjects.ini
Code:
;---------------------------------------------
Object LasgunBolt
; *** ART Parameters ***
Draw = W3DModelDraw ModuleTag_01
OkToChangeModelColor = Yes
ConditionState = NONE
Model = LasgunBolt
End
End
; ***DESIGN parameters ***
DisplayName = OBJECT:Missile
EditorSorting = SYSTEM
VisionRange = 0.0
ArmorSet
Conditions = None
Armor = ProjectileArmor
DamageFX = None
End
; *** ENGINEERING Parameters ***
KindOf = PROJECTILE
Body = ActiveBody ModuleTag_02
MaxHealth = 100.0
InitialHealth = 100.0
End
Behavior = HeightDieUpdate ModuleTag_04
TargetHeight = 1.0
TargetHeightIncludesStructures = Yes
OnlyWhenMovingDown = Yes
InitialDelay = 1000
End
; ---- begin Projectile death behaviors
Behavior = InstantDeathBehavior DeathModuleTag_01
DeathTypes = NONE +DETONATED
; we detonated normally.
FX = NONE
End
Behavior = InstantDeathBehavior DeathModuleTag_02
DeathTypes = NONE +LASERED
; shot down by laser.
FX = NONE
OCL = OCL_GenericMissileDisintegrate
End
Behavior = InstantDeathBehavior DeathModuleTag_03
DeathTypes = ALL -LASERED -DETONATED
; shot down by nonlaser.
FX = NONE
End
; ---- end Projectile death behaviors
Behavior = PhysicsBehavior ModuleTag_09
Mass = 1
End
Behavior = DumbProjectileBehavior ModuleTag_10
End
Geometry = Cylinder
GeometryMajorRadius = 4.0
GeometryHeight = 4.0
GeometryIsSmall = Yes
; Shadow = SHADOW_DECAL
End
Thanks!
//Boomer.