Guys,
How would I make a spell to create an item around the player without it being inside pz area, walls, monsters, players or obstacles?
I created a script but it does not respect the conditions as I said.
function onCastSpell(creature, variant)
local player = Player(creature)
local...