Crossbow Script

Hello! I going to make a small survival like game and i made an crossbow moddel. Now i want that the crossbow shoots when the player press the left mouse button. Is it possible to spawn an arrow that is flying and sticking on objects?
Is it also possible to get an nuber that shows the ammonition and ammo boxes to refill the ammonition?
I hope somone can answer my questions or give me some tips.
(Im sorry for my bad english, im from germany)

Yes, Unity allows you to spawn objects. The Instantiate API does this. And yes, you can have on-screen elements that show the number of arrows remaining, and have some system that allows the arrows to be refreshed.