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
  #1  
Old 04-25-2012, 06:14 AM
David198502's Avatar
David198502 David198502 is offline
Approved Member
 
Join Date: Dec 2009
Location: Austria
Posts: 1,536
Default

thank you Kodiak, without you i would give up on that thing i think,cause for me its like reading chinese....

but if i can implement that "planecounter" in my script above, then i could build a mission, which gets more and more unpredictable with every submission i add...
that would be really neat.
but i fear i will again have trouble to implement that part correctly into my script...
but will try out immediately..
btw, what do you mean with:"before loading a new mission you can check for example"?
and where and how do i implement this last line of code?


PS: now in my script i have the possibility to "destroy" planes when they land, or after a certain amount of time, 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.
__________________

Last edited by David198502; 04-25-2012 at 06:19 AM.
Reply With Quote
  #2  
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
  #3  
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
  #4  
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
  #5  
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
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 09:11 AM.


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