MakLayd, если примерно:
В дверь:
Код
;Artificial Intelligence Script
;Header
desc = People kills Controlled Door
;Triggers
:state=0,VAREQUAL=4:state=1,setframe=0,sound=$0
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff
:state=2,VARnotEQUAL =4:state=3,sound=$1,colon
:state=3:decframe=0
:state=3,frameatstart=0:state=0,setframe=0
;End of Script
Врагу в "destroy"
Код
;Artificial Intelligence Script
;Header
desc = Disappear
;Triggers
:state=0:state=1
:state=1,alphafadeequal=100:decalphafade=0
:state=1,alphafadeequal=0:state=2,INCVAR=1,destroy
;End of Script
Число 4 кол-во врагов... Могут быть ошибки естественно.