PDA

View Full Version : Time in Scripts


_79_dev
07-12-2011, 10:00 AM
~S~

I`ve just created simple mission, got no clue about C++ or Java, but can somebody explain me or pass a code pls how to get rid of AI airplanes lets say after they land or they just gonna dissapear. Also, how to end mission forever?


I attach a small mission there

http://www.megaupload.com/?d=7GA89021

adonys
07-12-2011, 10:19 AM
After the Ai lands, you shouldn't care about them anymore. You can use some scripts to force their removal (if the SP engine doesn't do it by itslef, I'm not sure if it does, or not).

Also, you can not force the mission to end. You can and should send the player a message (on the screen) that he can exit at any time by pressing ESC after your mission objectives are fulfilled (what "mission objectives are fulfilled" is entirely up to you, usually most of the missions considers them to be a force or normal landing, eventuallly at a specific airfield, and therefore they put the check code on the OnLanded and OnCrashLanded methods).

Ataros
07-12-2011, 10:24 AM
Check out this guide on removing AI http://forum.1cpublishing.eu/showthread.php?t=23606

Usually you do not need to stop a mission forever. In MP just restart Steam and Launcher couple of times a day to clear memory and restart mission.

_79_dev
07-12-2011, 10:28 AM
~S~

So there is no method to close mission, even on the triger like??