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

Module: Missile


Creates a missile Repulsor at the given location


repulsor = Missile_CreateRepulsorOrigin( (100, 350, 10), 10000, 6000 );

Required Args:

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