I want to manually set metal and energy storage values at the beginning of the game using SetTeamResource. My question is, when and where should I call it?
Code: Select all
function gadget:GetInfo()
return {
name = "setStorage",
desc = "2",
author = "3",
date = "4",
license = "5",
layer = 0,
enabled = true -- loaded by default?
}
end
function gadget:Initialize()
Spring.SetTeamResource(0,"es",1000)
Spring.SetTeamResource(0,"ms",1000)
end
Thanks in advance