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)
-   -   Online Dynamic Campaign with Script (http://forum.fulqrumpublishing.com/showthread.php?t=23129)

Ataros 08-03-2011 08:26 AM

Hi!

As you know we added a Spit2 to the captured blue field after reds capture it.
We have an annoying problem with it: after blue recapture the airfield and it becomes blue again reds can still spawn Spit2 on it. Looks like 2 spawnpoints remain in one place (both blue and red).

Could you please have a look at the scripts and check that the red spawnpoint is destroyed after blue recapture the airfield? I have seen code destroying spawnpoints when a field is captured in naryv examples I posted in this forums sections.

stillborn 08-06-2011 06:33 PM

1 Attachment(s)
Quote:

Originally Posted by Ataros (Post 318665)
Hi!

As you know we added a Spit2 to the captured blue field after reds capture it.
We have an annoying problem with it: after blue recapture the airfield and it becomes blue again reds can still spawn Spit2 on it. Looks like 2 spawnpoints remain in one place (both blue and red).

Could you please have a look at the scripts and check that the red spawnpoint is destroyed after blue recapture the airfield? I have seen code destroying spawnpoints when a field is captured in naryv examples I posted in this forums sections.

You'll need to append this piece of script into "iod_walk2.cs", "iod_walk8.cs", "iod_mis2.cs" and "iod_mis8.cs" as in the attachment picture.
Code:

foreach (AiBirthPlace bp in GamePlay.gpBirthPlaces())
{
    try { bp.destroy(); }
    catch (Exception ex) { Console.WriteLine(ex.Message); }
}


Ataros 08-07-2011 08:07 PM

Thanks a lot! Will try it.


All times are GMT. The time now is 09:29 PM.

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