SlashCo Wiki

SlashCoItemPickUp

 boolean SlashCoItemPickUp( Player ply, string item, number itemindex )

Description

Called when a survivor is about to pick up a dropped item entity, after the basic slot/timing checks pass but before any item ITEM.PrePickUp callbacks run.
Return true to cancel the pickup.

Arguments

1Player ply

The player attempting to pick up the item.

2string item

Name of the item being picked up.

3number itemindex

EntIndex of the item entity.

Returns

1boolean cancel

Return true to prevent the pickup.