got new code update:
;Artificial Intelligence Script
;Header
desc = Character uses shoot script when the players weapon is drawn
;Triggers
:state=0,plrcanbeseen:state=1
:state=1,plrcanbeseen,scancodekeypressed=2:state=2
:state=1,plrcanbeseen,scancodekeypressed=3:state=2
:state=1,plrcanbeseen,scancodekeypressed=4:state=2
:state=1,plrcanbeseen,scancodekeypressed=5:state=2
:state=1,plrcanbeseen,scancodekeypressed=6:state=2
:state=1,plrcanbeseen,scancodekeypressed=7:state=2
:state=1,plrcanbeseen,scancodekeypressed=8:state=2
:state=1,plrcanbeseen,scancodekeypressed=9:state=2
:state=1,plrcanbeseen,scancodekeypressed=10:state=2
:state=1,plrcanbeseen,scancodekeypressed=11:state=0
:state=2:shootplr
;End of Script
CODE UPDATE: The code ^up there^ only worked if you drew you gun in his view, where as this one works if your gun is in the characters view
;Artificial Intelligence Script
;Header
desc = Character uses shoot script when the players weapon is drawn
;Triggers
:state=0,scancodekeypressed=2:state=1
:state=0,scancodekeypressed=3:state=1
:state=0,scancodekeypressed=4:state=1
:state=0,scancodekeypressed=5:state=1
:state=0,scancodekeypressed=6:state=1
:state=0,scancodekeypressed=7:state=1
:state=0,scancodekeypressed=8:state=1
:state=0,scancodekeypressed=9:state=1
:state=0,scancodekeypressed=10:state=1
:state=1,scancodekeypressed=11:state=0
:state=1,plrcanbeseen:state=2
:state=2:shootplr
;End of Script
so far it works for me (using the keys at the top of the keyboard)
can ppl please test it and tell me what works and what dosen't?
thanks