er2.setSpawnCost 4

Available from Easy Red 2 2.1.1

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 TypeDescription
voidThis function doesn't return anything

Parameters

ParameterTypeDescription
1NumberThe index returned by createSpawn.
2NumberThe new cost. 0 makes the spawn free again.

Examples

No examples available.


Back to Scripting API