er2.setFactionBudget 4

Available from Easy Red 2 2.1.1

Tells the engine how many reinforcement points a faction has left. The respawn panel uses it to grey out spawns the side cannot afford, without waiting for a network round trip.The real counter stays in your script (a synced global is the usual place): this only mirrors it. Calling this at all is what switches spawn costs on.


Return value

Return TypeDescription
voidThis function doesn't return anything

Parameters

ParameterTypeDescription
1stringThe faction the budget belongs to.
2NumberPoints left. Negative values are clamped to 0.

Examples

No examples available.


Back to Scripting API