View Single Post
Old 06-28-2004, 01:06 PM   #4 (permalink)
CodeCat
Senior Member
 
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
Send a message via ICQ to CodeCat Send a message via MSN to CodeCat
Default

That's because you didn't give it a means of actually getting to its target. A projectile has to be able to move if it wants to do damage, right?

Try this:

Code:
Object Invis

  ; ***DESIGN parameters ***
  DisplayName       = OBJECT:Missile
  EditorSorting     = SYSTEM
  ArmorSet
    Armor = ProjectileArmor
  End

  ; *** ENGINEERING Parameters ***
  KindOf = PROJECTILE
  Body = ActiveBody ModuleTag_01
    MaxHealth       = 100.0
    InitialHealth   = 100.0
  End

  Behavior = DestroyDie ModuleTag_02
    ;nothing
  End
  
  Behavior = PhysicsBehavior ModuleTag_03
    Mass = 0.01
  End
  Behavior = MissileAIUpdate ModuleTag_04
    TryToFollowTarget               = Yes
    FuelLifetime                    = 1000
    InitialVelocity                 = 800                ; in dist/sec
    IgnitionDelay                   = 0
    DistanceToTravelBeforeTurning   = 0
    ;IgnitionFX                      = FX_BuggyMissileIgnition
    DetonateOnNoFuel = Yes
  End
  Locomotor = SET_NORMAL ReallyReallyFastLocomotor ;you have to make this
  
  Geometry = Sphere
  GeometryIsSmall = Yes
  GeometryMajorRadius = 1.0

End
CodeCat is offline   Reply With Quote