ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


inventory

Inventory functions

Introduction

ACSUtils provides extra functions to operate on inventory.

Just like GiveInventory/GiveActorInventory and TakeInventory/TakeActorInventory, every function is provided in two variants: one operating on the activator and the other operating on the actor with the specified tid.

SetInventory

  • void SetInventory(str item, int count)
  • void SetActorInventory(int tid, str item, int count)

ToggleInventory

  • void ToggleInventory(str item)
  • void ToggleActorInventory(int tid, str item, int count)

GiveMaxInventory/TakeMaxInventory

  • void GiveMaxInventory(str item)
  • void TakeMaxInventory(str item)
  • void GiveMaxActorInventory(int tid, str item)
  • void TakeMaxActorInventory(int tid, str item)
inventory.txt · Last modified: 2019/08/26 21:34 by korshun