SKKmods Posted October 12, 2017 Share Posted October 12, 2017 I need to get the Object or Actor reference(s) for player's current companion(s). The event OnCompanionDismiss is documented but there doesn't seem to be a corresponding add event to register for or GetCompanion query function. Tried GetPlayerFollowers, but stuck how to test a follower is a current companion ... Link to comment Share on other sites More sharing options...
shavkacagarikia Posted October 12, 2017 Share Posted October 12, 2017 GetPlayerFollowers will return array of current companions. Then you can cycle through it and do stuff for each of them individually Link to comment Share on other sites More sharing options...
SKKmods Posted October 12, 2017 Author Share Posted October 12, 2017 Ok so follower == companion then Link to comment Share on other sites More sharing options...
werr92 Posted October 12, 2017 Share Posted October 12, 2017 You might try to pick an alias for the current companion from the vanilla companion management quest (don't remember the name). Link to comment Share on other sites More sharing options...
steve40 Posted October 13, 2017 Share Posted October 13, 2017 There are also a couple of factions that you can test against: "CurrentCompanionFaction" and "HasBeenCompanionFaction". I tend to use these in Conditional tests to check if an NPC is a follower or not (using the GetInFaction condition), or in scripts, using the IsInFaction() function. Link to comment Share on other sites More sharing options...
SKKmods Posted October 13, 2017 Author Share Posted October 13, 2017 (edited) Lovely thanks as Game.GetPlayerFollowers( ) sometimes returns ex companions that are in the same location using .IsInFaction(pCurrentCompanionFaction) to filter is perfect. As a list of companion ObjectReferences doesn't seem to be published, and the naming convention is inconsistent, having dug 'em out of their starting worldcells: PiperRef DeaconRef CaitRef Codsworth1Ref CurieRef BoSPaladinDanseRef HancockREF CompMacCreadyRefNickValentineREF PrestonGarveyRef CompanionStrongRef CompanionX6_88Ref Edited October 13, 2017 by SKK50 Link to comment Share on other sites More sharing options...
SKKmods Posted January 14, 2018 Author Share Posted January 14, 2018 Old, but gold I finally found the current active companion Ref in the basegame Followers quest Companion alias ... for search posterity: Alias_FollowersQuest_Companion.GetReference() Link to comment Share on other sites More sharing options...
JonathanOstrus Posted January 14, 2018 Share Posted January 14, 2018 Old, but gold I finally found the current active companion Ref in the basegame Followers quest Companion alias ... for search posterity: Alias_FollowersQuest_Companion.GetReference() While true and good, it doesn't find Dogmeat. It was unclear if the OP cares about Dogmeat or not. But I thought it should be mentioned. If using the alias method to find Dogmeat you would use Alias_FollowersQuest_DogmeatCompanion.GetReference(). Also if the player is using a mod to support multiple companions it won't work right. Depending how those mods are made they may have their own quest with a Ref Collection, or they may use some array elsewhere. Link to comment Share on other sites More sharing options...
shavkacagarikia Posted January 14, 2018 Share Posted January 14, 2018 (edited) Old, but gold I finally found the current active companion Ref in the basegame Followers quest Companion alias ... for search posterity: Alias_FollowersQuest_Companion.GetReference() While true and good, it doesn't find Dogmeat. It was unclear if the OP cares about Dogmeat or not. But I thought it should be mentioned. If using the alias method to find Dogmeat you would use Alias_FollowersQuest_DogmeatCompanion.GetReference(). Also if the player is using a mod to support multiple companions it won't work right. Depending how those mods are made they may have their own quest with a Ref Collection, or they may use some array elsewhere. I'm pretty sure thats because bethesda was planning to allow additional companion together with dogmeat initially. Edited January 14, 2018 by shavkacagarikia Link to comment Share on other sites More sharing options...
SKKmods Posted January 14, 2018 Author Share Posted January 14, 2018 Err, i am the OP and am not looking for non standard multi companion support. But appreciate the additional info. Link to comment Share on other sites More sharing options...
Recommended Posts