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 09-27-2011, 12:37 PM
adonys adonys is offline
Approved Member
 
Join Date: Apr 2010
Posts: 850
Default

uhm.. not really.. I haven't really tried it, but I think you can use the cascaded inheritances of the same method.


Code:
public override void OnBattleStarted()
    {
        base.OnBattleStarted();
        ...
    }
Reply With Quote
  #2  
Old 09-27-2011, 12:43 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Quote:
Originally Posted by adonys View Post
the cascaded inheritances of the same method.


Code:
public override void OnBattleStarted()
    {
        base.OnBattleStarted();
        ...
    }
Sorry, I do not know what it means Maybe you can explain.

I had a script error when I tried to copy a second instance of some method (onTrigger or onActorCreated) to the same script placing it below the 1st one.
Reply With Quote
  #3  
Old 09-27-2011, 02:50 PM
adonys adonys is offline
Approved Member
 
Join Date: Apr 2010
Posts: 850
Default

inheritance should only work in different scripts.

base MG script
Code:
public override void OnBattleStarted() {
    code1
}
main mission
Code:
public override void OnBattleStarted() {
    base.OnBattleStarted();
    code2
}
secondary loaded mission
Code:
public override void OnBattleStarted() {
    base.OnBattleStarted();
    code3
}
Theoretically, after loading the secondary mission and its cs file, calling the OnBattleStarted() function should execute code1, then code2, then code3
Reply With Quote
Reply

Thread Tools
Display Modes

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:15 AM.


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