Hello there -- I'm interested in seeing if the ability to spawn an object on a player's location when they right-click an item inside their inventory is possible? As an example, if I wanted to build my own home, I could purchase an item from the vendor and then right-click the item, which would spawn a house on my location. Naturally I'm not only intending to use housing, but other objects as well.
Essentially, just want to know if you can spawn an object on your exact location using a Lua-scripted item. Thank you in advance for any answers.