It should check to see if your first 3 objectives are complete if so, it ends the level...it does nothing..
------------------
Save a tree, Kill a beaver!
Code:
# Jedi Knight Cog Script # # endlevelat01.COG # # Level 1 End Level Cog # # Ends level when trapdoor surface touched if all objectives are complete. # By frantik. symbols message touched sound goalsnd=Accomplish1.wav local thing player local surface trapdoor end # ======================================================================================== code touched: //checks to see if all objectives are completed. If they are end level. If (GetGoalFlags(player,0)== 2) && (GetGoalFlags(player,1)== 2) && (GetGoalFlags(player,2)== 2) { PlaySoundThing(goalsnd, player, 1.0, -1, -1, 0); Print("Mission Objective Complete!"); Sleep(2); jkEndLevel(1); } Return; end
------------------
Save a tree, Kill a beaver!
Save a tree, Kill a beaver!