GSC reference › Built-in

Missile_CreateAttractorOrigin()

Built-in (engine) Server Weapon

Creates a missile attractor at the given location

Signature

Missile_CreateAttractorOrigin(<origin>, <strength>, <affectDist>, [affectAllProjectiles], [alert range])

Parameters

NameRequired?Details
originRequired The center of the attractor
strengthRequired The strength of the attractor (maximum acceleration it can apply to a missile)
affectDistRequired The effective 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.
affectAllProjectilesOptional If set it will affect all projectiles inculding grenades and guided missiles.
alert rangeOptional If set it send notify when missile breaches range(but will not repulse).

Example (from Treyarch's docs)

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

Real uses in BO3's scripts

Not called anywhere in BO3's shipped scripts, so check it works in your mode before relying on it.

Related built-ins

New to GSC?

Start with the basics, or paste a compile error to get the fix.

Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).