Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 04-25-2012, 06:24 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

In your code you can modify
Code:
public override void OnTickGame()
    {
    
        if(MissionTimer.Elapsed.TotalSeconds >= 30 && GetSumAllPlanes() < 50)  //Loads a mission every 120s and only if the sum of all planes < 50
        {
Reply With Quote
  #12  
Old 04-25-2012, 06:34 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Quote:
Originally Posted by David198502 View Post
.., but i would like to have the possibility that some planes (bombers) get destroyed when they reach a certain waypoint behind the frontlines....im sure thats possible, but couldnt find it yesterday.
Wait for the patch, then it's possible to get the current Waypoint from a Actor. At the moment you can try OnActorTaskCompleted which has sometimes strange results, or use GetTask() from AiAirgroup in OnTickGame and check for AiAirGroupTask.DO_NOTHING
Reply With Quote
  #13  
Old 04-25-2012, 07:29 AM
David198502's Avatar
David198502 David198502 is offline
Approved Member
 
Join Date: Dec 2009
Location: Austria
Posts: 1,536
Default

thx Kodiak...it seems to work

so for the waypoints....if i leave the script that way and once the patch is out, will the ai removed then when it reaches the last waypoint, without adjusting the script further?
__________________

Last edited by David198502; 04-25-2012 at 08:00 AM.
Reply With Quote
  #14  
Old 04-25-2012, 11:54 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

I don't think so, but it should not be a great problem
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:13 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.