Revert "!B (CE-22386) (Orbis, CrySystem) CRASH: PS4 crashes on boot"
[CRYENGINE.git] / Editor / MissionTemplate.lua
blob1830c96fc6d667539d885c2ec0935708d25742a8
1 Mission = {
2 };
5 function Mission:OnInit()
6 -- you may want to load a string-table etc. here...
7 end
9 function Mission:OnUpdate()
10 local i;
11 local bFinished=1;
12 for i,objective in Mission do
13 if (type(objective)~="function") then
14 if (objective==0) then
15 bFinished=0;
16 else
17 end
18 end
19 end
20 if (bFinished==1) then
21 self.Finish();
22 end
23 end
26 function Mission:Finish()
27 -- go to next mission...
28 end