ScarDoc

Start typing to search the SCAR reference.

Function
Anvil

Anvil_SetPlayerResources

Set a player's resource income. Provide income-per-minute values. For SP missions.

On this page
Anvil_SetPlayerResources(player, manpowerIncome, munitionsIncome, fuelIncome, manpowerCap, arg5, arg6, fuelCap]))

Description

Default values are set in anvil.scar. To set all values to default, provide only the player argument.

Parameters

  • playerPlayerIDrequired
  • manpowerIncomeFloatoptional
  • munitionsIncomeFloatoptional
  • fuelIncomeFloatoptional
  • manpowerCapFloatoptional
  • arg5Floatoptional
  • arg6munitionsCapoptional
  • fuelCap])Floatoptional

Returns

Nil

Source

Declared in the game's script sources at:

scar/gamescarutil.scar