return A_Int(int returnme);
For use in If-Else blocks and Multi-Execution Blocks only. Allows ending of a block of code prematurely to return an int. 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_Bool. 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 integer. CustomInventory chains receiving a non-0 will succeed in their chains. Otherwise, it can be used to fail a state and possibly a chain.
|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. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.|