A_RestoreSpecialDoomThing

From ZDoom Wiki
Jump to navigation Jump to search

A_RestoreSpecialDoomThing

(no parameters)

Error.gif
Warning: This function should not be used. This article is for the purposes of complete documentation only.


Removes the INVISIBLE flag from the calling actor, and gives it the SPECIAL flag, then restores the NOGRAVITY flag if the actor normally has it, moves it to a random spawning point for inventory items that have been spawned by a class such as the MaceSpawner, and finally puts the calling actor in its Spawn state, plays the "misc/spawn" sound on the VOICE channel, and spawns an ItemFog at the calling actor's position. This, along with A_RestoreSpecialPosition, is used by the engine to "respawn" pickup items that were "hidden" after pickup.