SetActorTeleFog: Difference between revisions

From ZDoom Wiki
Jump to navigation Jump to search
Content deleted Content added
Blzut3 (talk | contribs)
m Function name was just plain wrong.
Blzut3 (talk | contribs)
m Refined behavior.
Line 4: Line 4:
Sets the corresponding actors with the given tid [[Actor_properties#TeleFogSourceType|TeleFogSourceType]] and [[Actor_properties#TeleFogSourceType|TeleFogDestType]].
Sets the corresponding actors with the given tid [[Actor_properties#TeleFogSourceType|TeleFogSourceType]] and [[Actor_properties#TeleFogSourceType|TeleFogDestType]].


If tid is 0, the calling actor is considered the activator. If the actor classes for the function are non-existent, set to 0, "none", or "null", the actor will spawn nothing for those fields when they teleport.
If tid is 0, the calling actor is considered the activator. Setting the fog to "none" will cause nothing to be spawned for the respective field. Using an empty string will preserve the current fog for that field.


==Example==
==Example==

Revision as of 02:01, 31 March 2015

void SetActorTeleFog (int tid, classname telefogsrc, classname telefogdest)
(development version 93ca850 only)

Sets the corresponding actors with the given tid TeleFogSourceType and TeleFogDestType.

If tid is 0, the calling actor is considered the activator. Setting the fog to "none" will cause nothing to be spawned for the respective field. Using an empty string will preserve the current fog for that field.

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.