UseInventory: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
(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...") |
No edit summary |
||
| Line 1: | Line 1: | ||
{{ACSFunction| | {{ACSFunction|description=Activates an inventory item held by player activator, if available. | ||
|usage=''void'' '''UseInventory'''(''str itemname'') | |usage=''void'' '''UseInventory'''(''str itemname'') | ||
|parameters= | |parameters= | ||
Latest revision as of 02:41, 10 May 2026
Description[edit]
This is an ACS built-in function.
Activates an inventory item held by player activator, if available.
Usage[edit]
void UseInventory(str itemname)
Parameters[edit]
- itemname: name of inventory artifact to activate
Return value[edit]
Examples[edit]
No examples given.
Notes[edit]
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.