SwapActorTeleFog

From ZDoom Wiki
Revision as of 22:30, 2 March 2015 by Blzut3 (talk | contribs) (Blzut3 moved page SwapTeleFog to SwapActorTeleFog: Function name was just plain wrong.)
Jump to navigation Jump to search

int SwapTeleFog (int tid)
(development version 93ca850 only)

Swaps the TeleFogSourceType and TeleFogDestType fields of the corresponding actors with the given tid.

If tid is 0, the calling actor is considered the activator. This function does nothing to those who have the same source and destination fogs.

Returns the number of how many actors were successfully modified, not including those unaffected from same types.

Example

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.