I am wondering how to spawn objects where the player is looking. Right now, the object only spawns facing east. Any help would be much appreciated! Please note I am learning, as I have little to no knowledge about scripting in LUA.
GET_ENTITY_HEADING on the player, SET_ENTITY_HEADING on the object.
(Alternatively ROTATION instead of HEADING to have it line up to the player on all axes)