PrintPickupMessage

From ZDoom Wiki
Jump to navigation Jump to search

Inventory

native static void PrintPickupMessage (bool localview, String str)

Usage

An Inventory function called when an item is picked up in the world (normally is called automatically in the item's Touch virtual). Prints the item's PickupMessage on the screen of the player who picked it up. This function can be called manually to perform the print.

Note, this is not a virtual function; if you need to modify the actual message that gets printed, there's a separate virtual function that can be overridden for that: PickupMessage().

Parameters

  • bool localview
If true, the message will only be printed for the actor who picks up the item.
  • String str
A text string to be printed.

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