Function
Modify
Modify_PlayerResourceRate
Modifies a player's incoming resource rate. Possible math types are MUT_Multiplication, MUT_Addition.
On this page
Modify_PlayerResourceRate(playerId, resourceType, scalefactor, mathtype)Description
Modifies a player's incoming resource rate. Possible math types are MUT_Multiplication, MUT_Addition.
Parameters
playerIdPlayerIDrequiredresourceTypeIntegerrequiredscalefactorRealrequiredmathtypeIntegeroptional
Returns
modidsmodids or nil if the modifier could not be appliedSource
Declared in the game's script sources at:
scar/modifiers.scar