Missile_CreateAttractorEnt( <entity>, <strength>, <maxDist> )


Module: Missile

Summary:

Creates a missile attractor at the origin of an entity



Example:

attractor = Missile_CreateAttractorEnt( enemy_chopper, 10000, 6000 );



Required Args:

  • 1 : <entity> The entity that is to be an attractor
  • 2 : <strength> The strength of the attractor (maximum acceleration it can apply to a missile)
  • 3 : <maxDist> The maximum distance at which the missile can be affected. The effect of the attractor falls off from <strength> to zero from the center to this distance away from the center.