Making weapon fire from a distance?

Hi Guys,

I'm playing a little bit with the Oxide framework just to learn how it works and have some fun but I got stuck.

The problem I have are weapons - I'm able to give it to player or spawn it as entity but I'm unable to make it fire from a distance.

For example I slap a weapon on a wall, hide behind a corner and fire it from there. Spawning it on the wall is not a problem but I can't get it to shoot. I have already decompiled Assembly-CSharp but I don't see it there neighter. 

Any hints on how to do this? I suspect I will need to write a "FireWeapon" method from scratch (tried it based on AutoTurret, but sadly I didn't succeed). 

Thank you in advance

You can just spawn bullet from that position in target direction
I think there is no way to actually fire a weapon which is not held by some player or npc. 
So the general way is like Orange said - Spawn a bullet and run sound effect of firing (maybe you can create a muzzleflash too, dunno)
Good I'll try to do it this way then. I was hoping there would be an easy way to preserve weapon characteristics.

Thanks a lot Guys.