Jump to content

Checking if the player has a companion


RedxYeti

Recommended Posts

Is there way to check if the player has a companion and then reference that companion as an actor?

 

 

 

Im basically trying to get any companion to get in a chair if the player gets in a chair OnActivate()

 

 

 

 

 

i dont mind using skse if needed.

Link to comment
Share on other sites

for vanilla, you can use the Follower reference alias in the DialogueFollower quest.

 

Something like:

Actor current follower = Follower.GetActorRef() 

If follower 
    ;do something 
endif

This wouldn't account for multiple follower mods though. To do that, you can make an area spell, put the condition GetRelationshipRank >= 3, that way it only affect companions, then put a script on the spell's magic effect with OnEffectStart, the target will be a companion.

Link to comment
Share on other sites

for vanilla, you can use the Follower reference alias in the DialogueFollower quest.

 

Something like:

Actor current follower = Follower.GetActorRef() 

If follower 
    ;do something 
endif

This wouldn't account for multiple follower mods though. To do that, you can make an area spell, put the condition GetRelationshipRank >= 3, that way it only affect companions, then put a script on the spell's magic effect with OnEffectStart, the target will be a companion.

 

 

thank you, ill go with the spell

Link to comment
Share on other sites

  • Recently Browsing   0 members

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