-Andreas
Recruit

Hi,
Is there any way to add a listener for creation of a MobileParty? I haven't found any in the CampaignEvents nor elsewhere. Parties are being spawned lots of places in the native code, which makes patching a bit tedious. Alternatively one patch for MBObjectManager.Create<T>() could work as most if not all creations of parties go through here. However.. The method never expects to fail instantiating a new instance of the MobileParty, so suppressing the creation and returning null from here is bound to cause issues.
Any feedback is appreciated.
Is there any way to add a listener for creation of a MobileParty? I haven't found any in the CampaignEvents nor elsewhere. Parties are being spawned lots of places in the native code, which makes patching a bit tedious. Alternatively one patch for MBObjectManager.Create<T>() could work as most if not all creations of parties go through here. However.. The method never expects to fail instantiating a new instance of the MobileParty, so suppressing the creation and returning null from here is bound to cause issues.
Any feedback is appreciated.