UseInventory

From Eternity Wiki
Revision as of 02:40, 10 May 2026 by Printz (talk | contribs) (Created page with "{{ACSFunction|notes=Activates an inventory item held by player activator, if available. |usage=''void'' '''UseInventory'''(''str itemname'') |parameters= *''itemname'': name of inventory artifact to activate |notes= This won't work if there's no player activator. The item must be of the Heretic kind, which stays in player's possession until player presses a key to activate it. This function does the same action on the item. For Doom, this function will be usable onl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

This is an ACS built-in function.

{{{description}}}

Usage

void UseInventory(str itemname)

Parameters

  • itemname: name of inventory artifact to activate

Return value

Examples

No examples given.

Notes

This won't work if there's no player activator.

The item must be of the Heretic kind, which stays in player's possession until player presses a key to activate it. This function does the same action on the item. For Doom, this function will be usable only in mods which introduce usable items.

This function's identification in zspecial.acs is: ACC internal.

See also