Ok, i made some scripts that wasn't working, and one agent script, what didn't work. But this is almost working. Enemies first shoot me, when i pick up enemy uniform and go back, they didn't shoot me. And when i shoot one enemy, HE shoot back. I made variables, so ALL enemies should shoot me when i shoot one enemy.
Here is script to uniform pick up(i have uniform model):
;Artificial Intelligence Script
;Header
desc = Pickup uniform
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupanitem.tga,hudname=itemprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40:state=1,playertake,coloff,setvar=1,plrsound=audiobank\misc\ping.wav,hudshow=itemprompt,hudfadeout=itemprompt
:state=1:rundecal=5
;End of Script
Here is script to enemy Main AI:
;Artificial Intelligence Script
;Header
desc = When plr have uniform, don't shoot,if plr shoot ,shoot back
;Triggers
:state=0,varequal=2:state=3
:state=0,varequal=1:state=2
;shoot plr:
:state=0,plrdistwithin=300:shootplr
:state=0,shotdamage=20:strafe=10,rotatetoplr,state=1
:state=1:strafe=-10,shootplr
;if plr have stolen uniform:
:state=2:freeze,rotateheadrandom,resethead
;if plr shoot, all enemies shoot back
:state=2,shotdamage=1:shootplr,setvar=2
:state=3,plrdistwithin=300:shootplr
;End of Script