UseActorInventory

From ZDoom Wiki
Jump to navigation Jump to search

int UseActorInventory (int tid, str classname)

Usage

Forces the actor(s) with the specified tid to use an item from their inventory, if they have one.

Parameters

  • tid: TID of the actor(s) that will attempt to use the item. If 0, this forces all players to use the item instead.
  • classname: The inventory item to be used.

Return value

The return value is the number of actors who used the item successfully.

Examples

Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.


See also