Jump to content

Difference Between AllowCompanion and SetAvailableToBeCompanion


Recommended Posts

My impression was that SetAvailableToBeCompanion() was to make an actor available as a companion for the first time and AllowCompanion() was for any other scenario (eg they'd been disallowed earlier), but I’ve hit an interesting situation.

I'm making a Glory companion mod and after the church attack (which she now survives) she’s somehow no longer available as a companion. AllowCompanion() doesn't work but SetAvailableToBeCompanion() does re-enable her as a companion. The only thing is the message ‘Glory is now available as a companion’ pops up which irks me. I looked through the scripting for RR302, RR303 and RR304 but couldn't find anything that might interfere.

 

Honestly my issue is cosmetic but I’m curious why Glory is somehow prevented from being a potential companion after the HQ attack. It also happens again after Rockets Red Glare. Anyone have any ideas what's happening?

Link to comment
Share on other sites

I would be looking deeper for code that cleans her up somewhere. I'm thinking it's like when a settler dies and you try to resurrect them, they do sweet FA, they are just zombies standing there. Maybe look for events being sent to other scripts and see if you can find it from there. Otherwise sorry no idea.
Link to comment
Share on other sites

I wouldn't be surprised if there is some code somewhere that's messing it up. Earlier I found that when you board the Cambridge vertibird there's scripting to kill Glory again and disable her. Thanks for the suggestion of where to look!

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...