SpawnMissile (Harvest)
From OxeyeWiki
|
spawnMissile(x, y, tx, ty) | ||
|
Creates a normal missile at (x, y) which will aim for (tx, ty). It doesn't check for range. | ||
| Parameter | Expected Type | Description |
| x | Number | The source x world coordinate. |
| y | Number | The source y world coordinate. |
| tx | Number | The target x world coordinate. |
| ty | Number | The target y world coordinate. |
| Returns | ||
|
Returns nothing. | ||
Example
harvest.spawnMissile(0, 0, 512, 512)