NPC/enemy cast spell

I want to force a NPC/enemy to cast a fireball in a certain direction, it is possible?
via Lua scripts