thanks
EDIT: I'm having trouble with a weapon script I've been making.
It's supposed to stop the weapon from firing if the variable jamFlag is equal to 1 and jamFlag is set to zero when you reload.
; -------------
; Weapon Script
; -------------
; Description
desc = Weapon AI
; Triggers
; ------Firing Control
:state=0:dimvar=jamFlag,dimvar=jamCnt
:state=0:setvar=jamFlag 0,setvar=jamCnt 30
:state=0,mouseclick=1,reloading=0,random=5:setvar jamFlag 1
:state=0:printval=jamFlag
:state=0,isrightweap,haveweapleft=0,mouseclick=1,reloading=0,varnotequal=jamFlag 1:fireweapon
:state=0,isrightweap,haveweapleft=1,mouseclick=2,reloading=0,varnotequal=jamFlag 1:fireweapon
:state=0,isrightweap,haveweapleft=1,mouseclick=3,reloading=0,varnotequal=jamFlag 1:fireweapon
:state=0,isleftweap,mouseclick=1,reloading=0,varnotequal=jamFlag 1:fireweapon
:state=0,isleftweap,mouseclick=3,reloading=0,varnotequal=jamFlag 1:fireweapon
; ------Reload Control
:state=1,reloading=0:enterzoom,state=0
:state=0,plrusingreload=1,zoomed=0:reloadplrweap,setvar=jamFlag 0
:state=0,plrusingreload=1,zoomed=1:reloadplrweap,leavezoom,state=1,setvar=jamFlag 0
:state=0,reloading=1,zoomed=1:leavezoom,state=1
; ------Zoom Control
:state=0,mouseclick=2,zoomed=0:enterzoom
:state=0,mouseclick=2 1,zoomed=1:leavezoom
; Weapon Selection need not be coded
come see night shift at http://forum.thegamecreators.com/?m=forum_view&t=106003&b=25 see you there