A_SpawnSingleItem
Jump to navigation
Jump to search
A_SpawnSingleItem (class<Actor> type, int fail_singleplayer = 0, int fail_cooperative = 0, int fail_deathmatch = 0)
Spawns an actor of class type at the position of one, and only one, of the actors of the same type as the calling actor. The three fail parameters are the chance not to actually spawn anything at all in the concerned gamemode; 0 means to always spawn, 256 to never spawn.
This codepointer is restricted to SpecialSpot and derived classes.