A Bool

From ZDoom Wiki
Jump to navigation Jump to search

return A_Bool(bool returnme);


For use in If-Else blocks and Multi-Execution Blocks only. Allows ending of a block of code prematurely to return an bool. The return keyword is required before its declaration, and so is the semicolon after the closing parenthesis.

Only one type of code block function can be used within a series of blocks at any given time.

NOTE: Actors NOT derived from CustomInventory should use the A_State function instead of this or A_Int. This function only makes sense for CustomInventory items such as psuedo-custom functions, and is ignored when used in anything but custom inventory items.


  • returnme - Returns an bool. CustomInventory chains receiving 'true' will succeed in their chains. Otherwise, it can be used to fail a state and possibly a chain.


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