Starsector API
Loading...
Searching...
No Matches
com.fs.starfarer.api.combat.MissileAIPlugin Interface Reference

Public Member Functions

void advance (float amount)
 

Detailed Description

NOTE: An implementation of this should almost always also implement GuidedMissileAI, this is required for the missile to be properly affected by flares.

If missile is tracking a target that phases or gets its collision class set to NONE, the default missile AI will fly in a straight line and continue to accelerate until the target is again trackable, at which point it will start actively tracking it again. It will not switch targets when its current target phases/has collision class set to NONE.

Custom guided missile AI implementations don't have to preserve this behavior, but if they intend to mimic the vanilla missile AI, they should.

Author
Alex Mosolov

Copyright 2015 Fractal Softworks, LLC

Definition at line 20 of file MissileAIPlugin.java.

Member Function Documentation

◆ advance()

void com.fs.starfarer.api.combat.MissileAIPlugin.advance ( float  amount)

The AI should do its main work here.

Parameters
amount

The documentation for this interface was generated from the following file: