Quote: "i would like the unarmed characters to attack, but cant make it happen just want basic attack ( punch, slap, kick .. whatever) is this possible .."
Yeah, look in the
scriptbank in the
people folder for melee10.fpi and assign that as the AI MAIN for the character.
Anyway, give that a try, and feel free to tweak it by choosing your own frames from the animation if you have a modeling program like
FragMOTION
You don't need to change them in the modeling program, it is just for viewing the individual frames and picking the ones to assign in the FPE.
The FPE file is where you add you custom slap or whatever by assigning those frames as a new animation, like above.
You could edit the animations if you want, but since you are new, I would say just stick to the basics first and pick your frames from the stock animations.
It looks as if animation #8 is the new melee animation assignment for the stock characters.
desc = Melee Follow and Attack
;Triggers
:state=0,plrdistwithin=500:state=1
:state=1,plrdistfurther=90:rotatetoplr,movefore=2,animate=2
:state=1,plrdistfurther=500:animate=1,state=0
:state=1,plrdistwithin=90,rateoffire:rotatetoplr,setframe=8,state=2
:state=2,framebeyond=8 60,plrdistwithin=100:plraddhealth=-10,sound=audiobank\misc\melee.wav,state=3
:state=2:incframe=8,rotatetoplr
:state=2,frameatend=8:state=1
:state=3:incframe=8
:state=3,frameatend=8:state=1
;animationinfo
animmax = 100
anim0 = 190,209
anim1 = 210,234
anim2 = 235,259
anim3 = 260,279
anim4 = 280,299
anim5 = 300,318
anim6 = 319,355
anim7 = 160,189
anim8 = 330,355...
So you could edit that assignment of frames in the FPE or add a new animation to the bottom of the list, then edit the script to call it instead of #8.
desc = Melee Follow and Attack
;Triggers
:state=0,plrdistwithin=500:state=1
:state=1,plrdistfurther=90:rotatetoplr,movefore=2,animate=2
:state=1,plrdistfurther=500:animate=1,state=0
:state=1,plrdistwithin=90,rateoffire:rotatetoplr,setframe=92,state=2
:state=2,framebeyond=92 60,plrdistwithin=100:plraddhealth=-10,sound=audiobank\misc\melee.wav,state=3
:state=2:incframe=92,rotatetoplr
:state=2,frameatend=92:state=1
:state=3:incframe=92
:state=3,frameatend=92:state=1
...
anim90 = 832,851
anim91 = 852,881
anim92 = 328,360...
I hope this helps.