five-on-it / packages/sim/src/loadouts / giveLoadout
Function: giveLoadout()
giveLoadout(
sim,eid,loadout):number
Defined in: packages/sim/src/loadouts.ts:66
Gives a character a loadout: the stacks that name a slot go in it when it is empty (as many as one slot holds), then the rest of every stack wherever it fits; ammunition goes in the pouch, whatever slot it names. An item the room does not know is left out. Returns how many items found no room or no definition.
Parameters
sim
eid
number
loadout
Returns
number