Thing_SpawnFacing
From ZDoom Wiki
139:Thing_SpawnFacing (tid, type, nofog, newtid)
tid: TID of map spot to spawn things at. type: Type of things to spawn. nofog: TRUE if there should be no fog, FALSE otherwise. newtid: TID to give to the newly spawned things.
This special is like Thing_Spawn and Thing_SpawnNoFog combined, except that the angle the newly spawned thing is facing will match the angle of the map spot it spawns at.
Note that this special requires the actor being spawned to have a SpawnID. To spawn an actor without one, use the SpawnSpotFacing function instead.
Usage:
TID is a number that makes a thing unique, the default is zero, and therefore a TID is usually set to something else, like 1. In Doom Builder you have to right click on a thing, select the Effects tab and change the Thing Tag to something besides 0.
The type is actually from the list of Spawn_numbers. You can either use the number or the defined name (T_SOMETHING) for clarity.
New TID is just a way to make the spawned thing unique if you need to refer to it later. It is just a number.

