if the player has the weapon in a specific slot, you can use plrcurrentweapon=
here for the cautious10.fpi
:state=1,plrcurrentweapon=1:state=2
:state=1,plrcurrentweapon=2:state=2
:state=1,plrcurrentweapon=3:state=2
so if the player has a weapon of one of this slots in his hands, the enemy shoot at him
to give him the weapon in a specific slot use this as main script for the weaponentity 1:
;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=1
:state=1,plrdistwithin=40:state=1,weapontoslot=1,playertake,coloff,rundecal=-1,plrsound=audiobank\items\pickupweapon.wav,hudshow=weaponprompt,hudfadeout=weaponprompt
;End of Script
for the other weapons higher the weapontoslot="value"
you need a script? I need useful requests at the moment!
http://forum.thegamecreators.com/?m=forum_view&t=200918&b=23