The way i do it is the make the trigger, getting the mouse position, on the client side, and do everything else on the server side, from creating the projectile, its visual, setting its velocities, and collision detection.
I'm sure theres a lot more efficient algorithm out there, how would you script your fireball?

1 comment
When I find other ways I let you know about it