(1) Add a global variable that holds the number of enemies that you need to kill (objective). globals need to go above the function....init section.
(2) decrease the value from (1) every time an entity is destroyed.
(3) add a condition (in main function section ) to check if (1) is 0....if it is then activate the entity if used i.e. the door entity name.
hope this helps...
Professional Programmer: Languages- SAS, C++, SQL, PL-SQL, JavaScript, HTML, Darkbasic Pro, Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; LG TFT monitor (widescreen).
Interests: Drumming, Saxophone, Art, Theatre, Music.