randomMissile

open fun randomMissile(source: CombatEntityAPI, priority: MagicTargeting.missilePriority, lookAround: Vector2f, direction: Float, searchCone: Integer, maxRange: Integer): MissileAPI

Picks a random enemy missile within parameters.

Return

Parameters

source

CombatEntity looking for a missile

priority

Does the source look for a complete random or has priorities

RANDOM, Pure random pick within search zone.

DAMAGE_PRIORITY Picks high damage missiles within the search zone first but still has some randomness.

HIGHEST_DAMAGE Picks the highest damage missile within the search zone.

lookAround

Point around which to look for missiles;

direction

Direction to look at (only used with a limited search cone)

searchCone

Angle within which the script will seek the target. Set to 360 or more to ignore.

maxRange

Range within which the script seeks a target in game units.


open fun randomMissile(source: CombatEntityAPI, priority: MagicTargeting.missilePriority, lookAround: Vector2f, direction: Float, searchCone: Integer, maxRange: Integer, ignoreFlares: Boolean): MissileAPI

Picks a random enemy missile within parameters:

Return

Parameters

source

CombatEntity looking for a missile

priority

Does the source look for a complete random or has priorities

RANDOM, Pure random pick within search zone.

DAMAGE_PRIORITY Picks high damage missiles within the search zone first but still has some randomness.

HIGHEST_DAMAGE Picks the highest damage missile within the search zone.

lookAround

Point around which to look for missiles;

direction

Direction to look at (only used with a limited search cone)

searchCone

Angle within which the script will seek the target. Set to 360 or more to ignore.

maxRange

Range within which the script seeks a target in game units.

ignoreFlares