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-28-2011, 09:35 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Problem with exploding fuel tanks could be that other players also get damaged.
Reply With Quote
  #2  
Old 04-29-2011, 08:42 AM
Flashman Flashman is offline
Approved Member
 
Join Date: May 2010
Posts: 109
Default

Hi Guys, im having some fun with this scripting business and have finally got a script that works, however I could do with some help with the timing commands:

I know that 1800 ticks = 1 minute but im not entirely sure what these two number cause to happen. From my script file:

if (Time.tickCounter() % 126000 == 18000)

When this counts down a mission is launched but im unsure as to the significane of the two timings:

does the 126000 give the time between each repeat operation of the operation?

I have found the second number, 18000 in this case appears to set the time for the first operation. Is this correct?

SO, if i want the operation (in this case a mission starts within themain mission and planes spawn) to repeat every 2 hours, but the first operation is 10 minutes after the main mission begins would this be correct?

if (Time.tickCounter() % 216000 == 18000)

Thanks!
Reply With Quote
  #3  
Old 04-29-2011, 08:49 AM
mcler002 mcler002 is offline
Approved Member
 
Join Date: Mar 2011
Location: UK
Posts: 277
Default

1st number = repeat i.e if it was 108000 - the map/ mission should load every 1hour...

2nd number = start time i.e. if it was 18000 = the map/mission should start within 10 minutes of the game start, or repeat interval...

But i dont think it works 100%... but as i have been told 1800 ticks "roughly" equals a minute...
Reply With Quote
  #4  
Old 04-29-2011, 09:24 AM
Flashman Flashman is offline
Approved Member
 
Join Date: May 2010
Posts: 109
Default

Quote:
Originally Posted by mcler002 View Post
1st number = repeat i.e if it was 108000 - the map/ mission should load every 1hour...

2nd number = start time i.e. if it was 18000 = the map/mission should start within 10 minutes of the game start, or repeat interval...

But i dont think it works 100%... but as i have been told 1800 ticks "roughly" equals a minute...
Cool, thanks.

I actually did some offline testing and set the timings to minutes adn sped things up! It appears to work roughly as you say... it will do for now!
Reply With Quote
  #5  
Old 04-29-2011, 09:30 AM
mcler002 mcler002 is offline
Approved Member
 
Join Date: Mar 2011
Location: UK
Posts: 277
Smile

Quote:
Originally Posted by Flashman View Post
Cool, thanks.

I actually did some offline testing and set the timings to minutes adn sped things up! It appears to work roughly as you say... it will do for now!
Yea i did offline testin as well... but x16 is just not fast enough lol! only went a couple of hours in...
Reply With Quote
  #6  
Old 04-29-2011, 11:15 AM
mcler002 mcler002 is offline
Approved Member
 
Join Date: Mar 2011
Location: UK
Posts: 277
Default AI damage & destory

Ive tested and tested... its not working :S

Help !
Reply With Quote
  #7  
Old 04-30-2011, 12:58 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Just to have it all in one thread

Quote:
Originally Posted by MuxaHuk View Post
Code:
public override void OnPlaceLeave(Player player, AiActor actor, int placeIndex)
    {
        base.OnPlaceLeave(player, actor, placeIndex);
        Timeout(1, () =>
        {
            AiAircraft CurAircraft = player.Place() as AiAircraft;
            AiAircraft PrevAircraft = actor as AiAircraft;
            if (CurAircraft != PrevAircraft)   
                { (actor as AiAircraft).Destroy(); }
        });
    }
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 11:53 PM.


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