Sure, I made one a while ago for Ply's Mod, so it will work for Project Green
;Artificial Intelligence Script
;Header
desc = turret
;Triggers
:state=0,haveweap=ww2\mp40:state=1
:state=1,plrusingaction=1:activate=2,state=2
:state=2,scancodekeypressed=0:state=3
:state=3,plrusingaction=1:activate=3,state=0
:activated=2:plrspeed=0,newjumpheight=1
:activated=2,plrusingrun=1:plrspeed=0
:activated=3:plrspeed=100,newjumpheight=50
;End of Script
Just change
ww2\mp40 to whatever gun you are using for the turret, and make sure you give it to a dynamic entity or a triggerzone
Edit: I think I found a better one, but i'll leave the old one up anyway
;Artificial Intelligence Script
;Header
desc = Weapon Pickup
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupaweapon.tga,hudname=weaponprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40,plrusingaction=1:activate=2,state=1,playertake,coloff,rundecal=-1,plrsound=audiobank\items\pickupweapon.wav,hudshow=weaponprompt,hudfadeout=weaponprompt
:state=1,keypressed=28 0:state=2
:state=2,plrusingaction=1:activate=3,state=10,plrsound=$1,playerdrop
:state=3:state=10
:activated=2:plrspeed=0,newjumpheight=1
:activated=2,plrusingrun=1:plrspeed=0
:activated=3:plrspeed=100,newjumpheight=50
;End of Script
You can just give this to the gun you want to use as the turret
Hope This Helps