I am making a game in which the player must shoot and destroy several targets to pass through a locked door. How might I do this? I found one script, but I could not get it to work.
here is what I found
;Script
desc = This will open a remote door after 3 entities have been picked up or destroyed.
:state=0,activated=1:state=10
:state=0,activated=2:state=40
:state=0,activated=3:state=70
:state=10,activated=2:state=20
:state=10,activated=3:state=30
:state=40,activated=1:state=50
:state=40,activated=3:state=60
:state=70,activated=1:state=80
:state=70,activated=2:state=90
:state=20,activated=3:state=200
:state=30,activated=2:state=200
:state=50,activated=3:state=200
:state=60,activated=1:state=200
:state=80,activated=2:state=200
:state=90,activated=1:state=200
:state=200:state=210,setframe=0,sound=$0
:state=210:incframe=0
:state=210,frameatend=0:state=2,coloff
;End of Script
and the other part
;Script
desc = destroy and activate 1
;place in entity's destroy ai
:state=0:activateifused=1,state=1
:state=1:rundecal=5,destroy
;End of Script