View Single Post
  #5  
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