SpawnEagleMissile (Harvest)
From OxeyeWiki
spawnEagleMissile(x, y[, alienId]) | ||
Creates an eagle missile at (x, y) which will attempt to kill the alien with the given alien ID. If "alienId" is omitted or negative, the eagle will attempt to find an alien using the current eagle priorities. | ||
Parameter | Expected Type | Description |
x | Number | The source x world coordinate. |
y | Number | The source y world coordinate. |
alien | Number | The target alien id. |
Returns | ||
Returns nothing. |
Example
harvest.spawnEagleMissile(0, 0, -1)