Use this for the door and make it dynamic!!!
;Artificial Intelligence Script
;Header
desc = Remote ope door if you find 5 entities
;Triggers
;If you have less/more entities, change the varequal=pickups x to x="your value"
:state=0,varequal=pickups 5:state=1,setframe=0,sound=$0
;do not change this
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff
:state=2,activated=0:state=3,sound=$1,colon
:state=3:decframe=0
:state=3,frameatstart=0:state=0,setframe=0
;End of Script
and the for the entities:
;Artificial Intelligence Script
;Created by Corno
;Header
desc = pick up 5 entities
;Triggers
:state=0,plrdistwithin=40,plrfacing=10:fpgcrawtextsize=40,fpgcrawtextfont=Arial,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=70,fpgcrawtext=Press F to pickup,state=1
:state=1:fpgcrawtextsize=40,fpgcrawtextfont=Arial,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=70,fpgcrawtext=Press F to pickup
:state=1,keypressed=33 1:playertake,addvar=pickups 1,etimerstart,state=2
:state=1,plrdistfurther=50:state=0
;If you have less/more entities, change the addrawtext=/x to x="your value"
:state=2:fpgcrawtextsize=40,fpgcrawtextfont=Arial,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=70,fpgcrawtext=%pickups,addrawtext=/5,state=3
:state=3:fpgcrawtextsize=40,fpgcrawtextfont=Arial,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=70,fpgcrawtext=%pickups,addrawtext=/5
:state=3,etimergreater=4000:state=4
;End of Script
If you have more or less entities than 5 look in the script how to change it...
And this is not a request board!!!! I just help you because I did it for someone else before
Corno_1