Jump to content

Detecting if someone is currently your companion


Recommended Posts

Actor Property AdaRef Auto Const
Faction Property CurrentCompanionFaction Auto Const


bool Function IsAdaCompanion()
	Return AdaRef.IsInFaction(CurrentCompanionFaction)
EndFunction

Or maybe:

Actor Property AdaRef Auto Const


bool Function IsAdaCompanion()
	If Game.GetPlayerFollowers().Find(AdaRef) >= 0
		Return True
	EndIf
EndFunction
Edited by LarannKiar
Link to comment
Share on other sites

  • Recently Browsing   0 members

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