Skip to content

five-on-it / packages/sim/src/items / takeItems

Function: takeItems() ​

takeItems(sim, eid, tag, count?): number

Defined in: packages/sim/src/items.ts:320

Takes up to count items answering to a tag from an entity, its last slots first; returns how many it took.

Parameters ​

sim ​

SimWorld

eid ​

number

tag ​

string

count? ​

number = Infinity

Returns ​

number