Suitcase item
Item defined in items/sh_suitcase.lua
Defines the Suitcase item (cw_suitcase), a fake melee weapon held in the hand whose Unpack option replaces it with
a random piece of clothing, food and drink.
Summary
Methods
Shows the suitcase attachment only while the player has the suitcase weapon out.
Unpacks the suitcase into a random set of clothes, food and drink when Unpack is chosen, then removes it.
OnDrop(player, position)shared
Lets the item be dropped; nothing else happens.
Methods
Shows the suitcase attachment only while the player has the suitcase weapon out.
Parameters
- player Player The player wearing the attachment
- entity Entity The
cw_gearattachment entity
Returns
- Boolean Whether the attachment is drawn
Unpacks the suitcase into a random set of clothes, food and drink when Unpack is chosen, then removes it.
Parameters
- player
- name
Lets the item be dropped; nothing else happens.
Parameters
- player
- position