Missile_CreateAttractorOrigin( <origin>, <strength>, <maxDist> )


Module: Missile

Summary:

Creates a missile attractor at the given location



Example:

attractor = Missile_CreateAttractorOrigin( (100, 350, 10), 10000, 6000 );



Required Args:

  • 1 : <origin> The center of the 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.