Can you change value states in functions? I am asking becouse Im starting to see how much code I can kill by usung functions but I set up this function to pass some value states with nothing happing.So my question is can I? here is the function with real time states.
function playmyobject(potionnum)
playobject=0
shootfire=0
through=0
nextshoot=0
dec potionnum
shoottimefire=0
endfunction
edit:
I made thease 2 functions here and they work great but only becouse they are commands and not states.
function blinkeye(objnum, fnum ,fnum2)
offset limb objnum,fnum,0,200,ffa#/5.0
offset limb objnum,fnum,0,ffa#/5.0,ffa#*-1
offset limb objnum,fnum2,0,200,ffa#/5.0
offset limb objnum,fnum2,0,ffa#/5.0,ffa#*-1
endfunction
function blinkeye2(objnum, fnum ,fnum2)
offset limb objnum,fnum,0,200,ffa#/5.0
offset limb objnum,fnum,-4,ffa#/5.0,ffa#*-1
offset limb objnum,fnum2,0,200,ffa#/5.0
offset limb objnum,fnum2,-4,ffa#/5.0,ffa#*-1
endfunction
my signature keeps being erased by a mod So this is my new signature.