Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   FMB, Mission & Campaign builder Discussions (http://forum.fulqrumpublishing.com/forumdisplay.php?f=203)
-   -   how to remove AI planes and AI vehicles? (http://forum.fulqrumpublishing.com/showthread.php?t=31457)

FG28_Kodiak 04-25-2012 06:24 AM

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
        {


FG28_Kodiak 04-25-2012 06:34 AM

Quote:

Originally Posted by David198502 (Post 414629)
.., 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

David198502 04-25-2012 07:29 AM

thx Kodiak...it seems to work:grin:

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?

FG28_Kodiak 04-25-2012 11:54 AM

I don't think so, but it should not be a great problem :rolleyes:


All times are GMT. The time now is 06:22 AM.

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