er2.setSpawnCost 4
Changes what a player birth at this spawn costs the faction budget. Useful to make well-armed positions more expensive as the battle turns.
Return value
| Return Type | Description |
|---|---|
| void | This function doesn't return anything |
Parameters
| Parameter | Type | Description |
|---|---|---|
| 1 | Number | The index returned by createSpawn. |
| 2 | Number | The new cost. 0 makes the spawn free again. |
Examples
No examples available.
