SpawnBullet (Harvest)
From OxeyeWiki
|
spawnBullet(damage, startX, startY, startZ, goalX, goalY, goalZ) | ||
|
Creates a dropship bullet at (startX, startY, startZ) heading for (goalX, goalY, goalZ) and explodes there. Damage will be dealt to all aliens that are found within a circle radius of the target position. | ||
| Parameter | Expected Type | Description |
| damage | Number | The damage to be dealt to the aliens. |
| sourceX | Number | The source x world coordinate. |
| sourceY | Number | The source y world coordinate. |
| sourceZ | Number | The source z world coordinate. |
| targetX | Number | The target x world coordinate. |
| targetY | Number | The target y world coordinate. |
| targetZ | Number | The target z world coordinate. |
| Returns | ||
|
Returns nothing. | ||
Example
harvest.spawnBullet(10, sx, sy, 100, ex, ey, 0)