Summary

Methods

Draw()client
Draws the belongings model.
Plays a glass impact effect and a soft impact sound at the entity's position.
Draws the belongings title and the hint for opening them when the entity is looked at.
Sets up physics, simple use and 50 health for the belongings.
Drops the stored items and cash into the world, unless the server is shutting down.
Subtracts the damage from the belongings' health and destroys them at zero health.
Sets the suitcase model and stores the inventory and cash the belongings hold.
Always transmits the belongings to every client.

Methods

Draws the belongings model.

Plays a glass impact effect and a soft impact sound at the entity's position.

Parameters

  • scale Number optional, defaults to nil Unused; the effect scale is always 8

Draws the belongings title and the hint for opening them when the entity is looked at.

Parameters

  • x
  • y
  • alpha

Sets up physics, simple use and 50 health for the belongings.

Drops the stored items and cash into the world, unless the server is shutting down.

Subtracts the damage from the belongings' health and destroys them at zero health.

Parameters

  • damageInfo

Sets the suitcase model and stores the inventory and cash the belongings hold.

The contents are dropped into the world when the entity is removed (see ENT:OnRemove).

Parameters

  • inventory Inventory The items to keep in the belongings
  • cash Number The amount of cash to keep in the belongings

Always transmits the belongings to every client.

Defined in