MagicGuidedProjectileScript

constructor(proj: DamagingProjectileAPI, target: CombatEntityAPI)

Initializer for the guided projectile script

Parameters

proj

The projectile to affect. proj.getWeapon() must be non-null.

target

The target missile/asteroid/ship for the script's guidance. Can be null, if the script does not follow a target ("ONE_TURN_DUMB") or to instantly activate secondary guidance mode.