Skip to content

pickUp beta ​

Function of @v12-engine/engine

ts
export declare function pickUp(world: World, entity: Entity, groundId: number): boolean;

Has the entity pick up the item lying on the ground by its id; returns false when none is there, no slot is free or beforePickUp refuses