addResource
addResource(
writer,entity,handle):void
Gives entity the resource, where its settings say it starts, as
<Resource> and the CharacterSpawn’s resources do: its maximum
is the base of its max<Name> stat, which modifiers raise and lower.
An entity that has it starts it over. Add it before a save’s stats are
restored, so a saved stat wins. A kind the entity’s world has not
installed throws, naming the list to add it to.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
EntityAuthority |
entity |
Entity |
handle |
ResourceHandle |
Returns
Section titled “Returns”void