Home   Help Search Login Register  

Author Topic: Including an addon in a mission  (Read 1029 times)

0 Members and 1 Guest are viewing this topic.

Offline Doomguy

  • Members
  • *
Including an addon in a mission
« on: 11 Dec 2008, 12:20:45 »
Hi editors,

I was wondering whether the following is possible: including the contents of an addon in a mission's .pbo file, and loading that content and config when the mission starts. I don't want to have a separate addon file that must be loaded.

Let's say I have an addon that defines a new soldier type, the radioman. It has a config.cpp that does:

class CfgVehicles {
  class WBSoldier;
  class WRTOSoldier : WBSoldier {
    // bla
  }
}

Could I just take that config.cpp file and include it from the mission's description.ext, and use the new soldier type within the mission? If not, is there another way that this could be done?

Thanks!

Doomguy

Offline Blacknite

  • Members
  • *
  • Chiefs runs the navy!
Re: Including an addon in a mission
« Reply #1 on: 11 Dec 2008, 14:07:20 »
Are you trying to create an addon in a mission?

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: Including an addon in a mission
« Reply #2 on: 11 Dec 2008, 15:00:24 »
Sadly, no. It'd be quite rad though if config addons could be included in the mission file; would allow for quite a lot more creativity from mission makers!  :good:

But sadly, no.

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"