SwapActorTeleFog: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
m Function name was just plain wrong. |
m removing "new" for GZDoom 2.4.0 release |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
int '''SwapActorTeleFog''' (int ''tid'') |
int '''SwapActorTeleFog''' (int ''tid'') |
||
{{git|93ca850}} |
|||
Swaps the [[Actor_properties#TeleFogSourceType|TeleFogSourceType]] and [[Actor_properties#TeleFogSourceType|TeleFogDestType]] fields of the corresponding actors with the given tid. |
Swaps the [[Actor_properties#TeleFogSourceType|TeleFogSourceType]] and [[Actor_properties#TeleFogSourceType|TeleFogDestType]] fields of the corresponding actors with the given tid. |
||
| Line 8: | Line 7: | ||
Returns the number of how many actors were successfully modified, not including those unaffected from same types. |
Returns the number of how many actors were successfully modified, not including those unaffected from same types. |
||
== |
==Examples== |
||
{{noexamples}} |
{{noexamples}} |
||
[[category:ACS Actor functions]] |
[[category:ACS Actor functions]] |
||
Latest revision as of 13:21, 20 March 2017
int SwapActorTeleFog (int tid)
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.
Examples
| 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. |