GetTag

From ZDoom Wiki
Jump to navigation Jump to search

clearscope string GetTag [(string defstr)] const

Usage

Returns the tag of the calling actor. If the actor does not have a tag and defstr is an empty string, the actor's class name is returned instead.

Parameters

  • defstr: a string to return by default if the actor does not have a tag. Default is "" (an empty string).

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.