UseActorInventory

From ZDoom Wiki

Jump to: navigation, search

int UseActorInventory (int TID, str classname)


Forces the actor(s) with the specified TID to use an item from their inventory, if they have one. The return value is the number of actors who used the item successfully.

  • 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.

Examples

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 contibutions are greatly appreciated.
Personal tools