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
| Name | Required? | Details |
|---|---|---|
| origin | Required | The center of the attractor |
| strength | Required | The strength of the attractor (maximum acceleration it can apply to a missile) |
| affectDist | Required | 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. |
| affectAllProjectiles | Optional | If set it will affect all projectiles inculding grenades and guided missiles. |
| alert range | Optional | 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
- Missile_CreateAttractorEnt()Creates a missile attractor at the origin of an entity
- Missile_CreateRepulsorOrigin()Creates a missile Repulsor at the given location
- Missile_CreateRepulsorEnt()Creates a missile repulsor at the origin of an entity
- Missile_DeleteAttractor()Deletes a missile attractor or repulsor
- GetTagOrigin()Gets the origin of the tag
- SetOrigin()Set the player's origin
- CreateUIModel()Creates and returns a UIModel from a parent model.
- GetOrigin()Get the origin of the entity
- CreateDynEntAndLaunch()Creates and launches a dynent.
- CreateThreatBiasGroup()Create a new threat bias group.
- GetStartOrigin()Get the starting origin for an animation, in world coordinates, given its current position, and angles
- CreateLUIMenu()Creates a LUI menu to be opened later with OpenLUIMenu.
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).